How to configure/compile gcc for a specific cpu ?

jeroen dobbelaere jeroen.dobbelaere@acunia.com
Mon Nov 12 18:11:00 GMT 2001


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




More information about the Gcc-help mailing list