Can gcc generate an x86 "far return"?
Michael Meissner
meissner@linux.vnet.ibm.com
Mon Feb 9 19:40:00 GMT 2009
On Sat, Feb 07, 2009 at 04:36:04PM -0800, John Z. Bohach wrote:
> 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?
There is no current support in the compiler for generating an LRET instruction
directly.
--
Michael Meissner, IBM
4 Technology Place Drive, MS 2203A, Westford, MA, 01886, USA
meissner@linux.vnet.ibm.com
More information about the Gcc-help
mailing list