[fpc-devel] FPC micro controller

Jonas Maebe jonas.maebe at elis.ugent.be
Thu Jul 30 10:33:45 CEST 2009


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



More information about the fpc-devel mailing list