Adding assembly after end of functions in GCC-3.4

Jim Wilson wilson@specifixinc.com
Thu Feb 12 23:52:00 GMT 2004


Etienne Lorrain wrote:
>  between functions, if it would (undocumentely) work to put an
>  asm("") in between the last return of a function and the closing
>  brace of the function.

No.  Unreachable code will be deleted by dead code elimination (DCE) 
optimizations.  Even if the code is volatile, it will still be deleted.
-- 
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com



More information about the Gcc mailing list