x86 32-bits compiler use on a 64-bits machine ?

Christophe LYON christophe.lyon@st.com
Wed Jul 2 08:36:00 GMT 2008


Hello,

I have built GCC (various releases) on a x86 32 bits machine and I need 
to use the same binary (accessed via NFS) on a x86 64 bits machine.

Will I get the same result with "gcc 64 bits + -m32" and with "gcc 32 
bits" ? ie will "-m32" will configure everything or are there some issues?

I will need to link object files produced by both compilers: will this work?

The documentation only mentions the size of int and pointer types.

Thanks,

Christophe.



More information about the Gcc-help mailing list