[fpc-devel] Blackfin support

Florian Klaempfl florian at freepascal.org
Fri Jul 9 15:54:43 CEST 2010

Jeppe Johansen schrieb:
>> Yes, but the code is not selected dynamically: if one compiles for armv5
>> but runs it on a armv6+, the armv6 doesn't use the new instructions.
> True, but do you think anyone does that? :) Most people know what end
> hardware their programs will run on
> I don't think we can have support for both in the rtl. I don't even
> think you can do that, since GNU as won't accept ARMv6 instructions if
> you assemble for ARMv5, and throw an error

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.

More information about the fpc-devel mailing list