On 07.07.12 12:24, Felipe Monteiro de Carvalho wrote: > On Sat, Jul 7, 2012 at 11:42 AM, Thomas Schatzl <[email protected]> wrote: >> The revision you have does not support the "rev" instruction when using >> -CpARMv6. Use -CpARMv5 (or no switch, as it is the default) to create the >> (cross-)compiler. > > -CpARMv5 will generate instructions which crash many Android devices, > including my own HTC Wildfire.
Have a look at rtl/arm/arm.inc and look for the SwapEndian functions. If you disable them by putting some bogus ifdef around them, then the generic functions will be used. So far this should be the only place which has the rev instructions. In theory an ARMv5 binary should not crash (at least not because of invalid instructions) on your android device. Nico _______________________________________________ fpc-devel maillist - [email protected] http://lists.freepascal.org/mailman/listinfo/fpc-devel
