Florian Klaempfl wrote on Fri, 09 Jul 2010:

Florian Klaempfl schrieb:
Well, you can always assemble for ARMv6 but use only ARMv5 instructions
when running on ARMv5. This is what the rtl does with the PLD
instruction in system.move: a system.move procedure with PLD is only
used when the CPU supports it.

Of course, this aims more towards generic arm-linux programs than
embedded stuff where you usually build your custom rtl anyways.

At least if you use the VFP, you have to compile all code for the correct cpu, because the compiler has to use different versions of the "load/store multiple vfp registers" instructions for pre-ARMv6 and for ARMv6 and later in the function prologs.


Jonas

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to