On 30 Jul 2009, at 10:12, Michael Schnell wrote:

Would it not suffice just to provide a documentation on the layout of
bitpacked arrays and records, which supposedly will be different for low
and high endian processors, but otherwise don't need to change.

It is impossible to predict whether they need not be changed for any current or future processor or toolchain. If you really want something with a fixed layout, then a new concept has to be introduced in which you can precisely specify this layout in a way that is endian-agnostic (rather than just declaring types and hoping that the compiler will forever lay them out the way you need them).

Bitpacked arrays and records are not intended nor suited for that purpose.


Jonas
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to