Can gcc generate an x86 "far return"?

John Z. Bohach jzb2@aexorsyst.com
Sun Feb 8 00:39:00 GMT 2009


Is there an __attribute__ or #pragma or some other facility to get gcc 
to generate an "lret" (opcode  0xcb as opposed to opcode 0xc3) at the 
end of a void function?

I am able to generate my own "lret" via inline assembly, but I was 
wondering if the compiler offered any other options?

Thanks,
John

(I'm talking i386 and newer...).



More information about the Gcc-help mailing list