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: Frame pointer register name


Amittai Aviram <amittai.aviram@yale.edu> writes:

> Oh, I see!  The build includes both 64-bit and 32-bit modes (so that the -m32 option will work), so I get the error when the build process gets to that point.  What preprocessor symbol can I use in my code to identify 64 versus 32 bit modes for conditional compilation?  Do GCC's Makefiles set __x86_64__ and __i386__?  Thanks!

Yes, #ifdef __x86_64__ will reliably detect 64-bit mode.

Ian


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