Compile for different machine

Sergey Ivanov icegood1980@gmail.com
Thu Sep 27 13:28:00 GMT 2012


Tried to compile code for i686 instructions set under my AMD x64 in gcc 4.6.
Specified -march=i686.
Obtained "error: CPU you selected does not support x86-64 instruction set"
Why?
Full options line is:
export CC=$(compiler) -O3 -finline-limit=100000 --param
inline-unit-growth=10000 --param large-function-growth=100000 \
  --param large-function-insns=47000 -march=i686 -Wall
-Wno-format-security $(GCC_VER_MORE_45_NO_UNUSED_RET) --param
large-stack-frame=65536 \
  --param large-stack-frame-growth=3000 $(explicit_templates) -pg

-- 
Kind regards,
Sergey Ivanov



More information about the Gcc-help mailing list