[fpc-devel] How to get FPC to generate floating point instructions for ARM?

Jonas Maebe jonas.maebe at elis.ugent.be
Tue Mar 15 11:54:59 CET 2011


On 15 Mar 2011, at 11:32, michael wrote:

> $make clean all PP=/path/to/ppcarm PREFIX="/opt/fpc-svn"
> OPT="-dFPC_ARMEL -O- -dFPC_ABI_EABI"
>
> The resulting compiler works on the target but it generates software  
> floating
> point instructions like "bl float64_mul".
>
> Here I get stuck. I cannot get FPC to generate floating point  
> instructions.
>
> Adding any floating point options to FPC when compiling my  
> application,
> like -CfVFPV3, results in errors like:
>
> PPU Loading /opt/fpc-svn/lib/fpc/2.5.1/units/arm-linux/rtl/system.ppu
> Trying to use a unit which was compiled with a different FPU mode
>
> Trying to rebuild my native compiler on the target with -CfVFPV3 in  
> the
> options fails with errors about "selected CPU does not support ARM
> mode:....." for all of the floating point instructions generated.

Those errors come from the assembler, not from FPC. You probably have  
to add -Cparmv6. See also http://wiki.freepascal.org/FPC_New_Features_Trunk#Support_for_VFPv2_and_VFPv3


Jonas



More information about the fpc-devel mailing list