Jamie Prescott <jpre...@yahoo.com> writes: > Under which conditions GCC generates nops?
It depends entirely on the target. For many targets, gcc will never generate a nop instruction, except as a byproduct of alignment. > I noticed that with 4.4.0, gen_nop() is required, thing that wasn't with > 4.3.3. > Can I just define an empty insn for nop, of GCC requires a one-byte insn for > its > own alignment purposes? Normally gcc does alignment by issuing an assembler directive, and the assembler is responsible for generating nop instructions when necessary. Ian