This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Compile for different machine


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]