This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: gcc options to use
On Thu, Mar 19, 2009 at 15:37, Koornstra, Reinoud <koornstra@hp.com> wrote:
>
> I am compiling some libs and binaries for core2 duo cpu machines.
> The gcc version is 4.3.3 and the arguments I use are:
>
> x86_64-unknown-linux-gnu-gcc -m64 -march=core2 -mtune=core2 bla bla.
> When I read the compiled bin with readelf it reports this:
>
> Class: ELF64
> Machine: Advanced Micro Devices X86-64
> Etc etc.
>
> I guess this is alright....?
>
Well readelf would have no idea for which processor the program was
tuned, so it presumably can only report the instruction set, which was
developed by AMD.
Seems alright to me,
~ Scott