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]

How to configure/compile gcc for a specific cpu ?


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



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