This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Compile for different machine
- From: Sergey Ivanov <icegood1980 at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Thu, 27 Sep 2012 16:28:16 +0300
- Subject: 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