>>4Actually, writing hex code directly can enable some
rare optimizations, like e.g. using address/instruction
as value(+location-dependent opcodes)
or self-modifying code which is not allowed/supported by assembler.
The disadvantages: it destroys cache coherency, and is impossible to debug and read. You'll also have to allow executable segments to be writeable(and possibly disable executable stack protection).