Florian Klaempfl schrieb:
> 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.

Of course, this aims more towards generic arm-linux programs than
embedded stuff where you usually build your custom rtl anyways.
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to