Re: Does -march affect binary compatibility?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Joseph Garvin <joseph.h.garvin@xxxxxxxxx> writes:

> In the docs here:
>
> http://gcc.gnu.org/onlinedocs/gcc/i386-and-x86_002d64-Options.html
>
> It says that 'mtune' doesn't affect ABI, but it doesn't specify if
> 'march' does or not. Will -march=i386 compiled libraries link against
> -march=i686 compiled apps? Also if any devs read this maybe you could
> update the docs to clarify this for future users? ;)

The -march option does not affect the ABI in the sense that files with
different -march options will link together with no problems.  It does
affect the ABI in the sense that if you link an object compiled with
-march=i686 into your program, the program may not run on a system which
only has a vanilla i386.

Ian

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux