This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Forcing far calls on x86


Mike Smith <scgtrp@gmail.com> writes:

> Is it possible to force GCCÂto emit absolute-address calls when
> compiling for x86? I'm referring to the CALL r/m32 (FF /2) form of the
> instruction, as opposed to the CALL rel32 (E8) form.

I don't think there is any gcc option for this in 32-bit mode.

In 64-bit mode you can use -mcmodel=large.

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]