How to add a NOP instruction in each basic block for obj code that gcc generates

Ian Lance Taylor iant@google.com
Fri Aug 11 07:56:00 GMT 2006


Jeff <jeffhuang9999@gmail.com> writes:

> > The simplest way is going to be something like
> >    fprintf (asm_out_file, "\tnop\n");
> 
> I added fprintf (asm_out_file, "\tnop\n"); to the end of case
> CODE_LABEL.  Then I recompile the gcc.  Unfortunately, it doesn't seem
> that a NOP was inserted.  Any ideaes?

No.

Ian



More information about the Gcc mailing list