[fpc-pascal] Re: Endian issues when porting FPC programs from x86 to other platforms

Bernd Mueller mueller.b at gmx.net
Wed Nov 3 10:23:48 CET 2010


Jonas Maebe wrote:
> On 02 Nov 2010, at 21:39, Felipe Monteiro de Carvalho wrote:
> 
>> On Tue, Nov 2, 2010 at 7:04 PM, Bo Berglund <bo.berglund at gmail.com> wrote:
>>> Thanks, that helps a lot! Are there also overloaded BEtoN functions
>>> for floating point values?
>> I think that single and double have always the same binary layout.
> 
> That's incorrect, their endianess changes in the same way as that of integer data (except on ARM when using the FPA floating point unit, which uses its own special byte ordering).

on ARM/OABI with double precision Netwinder FPE it is little endian with 
low and high dwords swapped.

Regards, Bernd.




More information about the fpc-pascal mailing list