[fpc-devel] Freepascal in microcontrollers

Michael Schnell mschnell at lumino.de
Thu Feb 28 08:58:49 CET 2008

> C-style bitpacking ("char c:1" and "int c:1" are often laid out 
> differently in C depending on the previous fields,
Not only this. C defines the layout as implementation depended. I once 
was bitten by this when porting a networked project from a low endian 
processor to a high endian processor :( .

Thus if we want binary portability of the structures we need to be 
better than C (optionally defining the structure as high-endian or low 
endian on user request) !!!!


More information about the fpc-devel mailing list