Interplay of options -m32 and -march on x86_64 host
Ian Lance Taylor
iant@google.com
Mon Sep 28 21:46:00 GMT 2009
Erik Leunissen <e.leunissen@hccnet.nl> writes:
> I'm compiling for a 32bit linux-x86 target on a linux-x86_64 host.
>
> using: - the distribution supplied gcc (4.3.1)
> - openSuSE linux 11.0
>
> In this configuration, gcc supports the option -m32 to do that.
>
> What I could not figure out is whether I can compile for a specific x86
> architecture, say i686, using the option -march=i686 in coombination
> with -m32.
Yes, you can.
Ian
More information about the Gcc-help
mailing list