[fpc-devel] Arm Big Endian

Marco van de Voort marcov at stack.nl
Tue Aug 23 09:31:55 CEST 2005


> >and then:
> >make crossall CPU_TARGET=arm OS_TARGET=linux
> >
> >And it is busy compiling and assembling. However, I noticed the
> >commands:
> >/bin/mkdir -p /pp/rtl/units/arm-linux
> >arm-linux-as  -o /pp/rtl/units/arm-linux/prt0.o arm/prt0.as
> >arm-linux-as  -o /pp/rtl/units/arm-linux/dllprt0.o arm/dllprt0.as
> >arm-linux-as  -o /pp/rtl/units/arm-linux/cprt0.o arm/cprt0.as
> >arm-linux-as  -o /pp/rtl/units/arm-linux/gprt0.o arm/gprt0.as
> >
> >The command line options for arm-linux-as include:
> >-mbig-endian and -mlittle-endian
> >Shouldn't one of those be included, or does arm-linux-as also pick
> >up endian information from some environment variable?
> 
> Those arm-linux-as lines are in the Makefile and not in the compiler.

Note that the easiest way to deal with such issues is to simply make
arm-linux-as and -ld a script that adds a parameter, so

arm-linux-as is renamed to true-arm-linux-as and arm-linux-as is e.g.
(untested):

#!/bin/sh
/path/to/true-arm-linux-as -mbig-endian $@





More information about the fpc-devel mailing list