This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
How to configure/compile gcc for a specific cpu ?
- From: jeroen dobbelaere <jeroen dot dobbelaere at acunia dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Wed, 21 Nov 2001 16:34:59 +0100
- Subject: How to configure/compile gcc for a specific cpu ?
- Organization: ACUNIA
Hello,
I'm trying to create a cross compiler
from i686-linux to arm-linux with gcc-3.0.2.
This works fine, but I'm trying to default the
processor support to cpu = 'xscale', and only 'soft-float'
support.
I've used this to configure :
../gcc-3/configure --prefix=/opt/armlinux-root \
--target=arm-linux --with-cpu=xscale \
--program-transform-name=s,^,arm-linux-, \
--without-fp --enable-languages="c c++" \
--enable-threads=posix \
--with-headers=/opt/armlinux-root/include
which creates a usable cross-compiler, but after checking,
the default is not explicitely to 'xscale' and 'soft-float'
-> using
arm-linux-gcc -O2 -c tst.c
has different results as
arm-linux-gcc -O2 -mcpu=xscale -msoft-float -c tst.c
What is the best way to resolve this ?
Greetings,
--
Jeroen Dobbelaere
Embedded Software Engineer
ACUNIA Embedded Solutions
http://www.acunia.com