[lug] C++ inline asm on g++

Tom Tromey tromey at redhat.com
Thu Jan 10 17:29:46 MST 2002


>>>>> "Kelly" == Kelly Brock <kbrock at spamcop.net> writes:

Kelly> Is there a variation of this usable in GCC?  I tried the
Kelly> __attribute__ (naked) thing but couldn't get it to work.  An
Kelly> answer to either case would be wonderful.

I think __attribute__((naked)) only works on certain platforms.  If
you want to write an assembly function with a custom prologue and
epilogue, why not just write an assembly file?  Why use a C wrapper at
all?

Tom



More information about the LUG mailing list