gpc-20030323 released

CBFalconer cbfalconer at yahoo.com
Mon Mar 24 22:39:04 CET 2003


Adriaan van Os wrote:
> Frank Heckenbach wrote:
> 
> > I've uploaded a new alpha to http://www.gnu-pascal.de/alpha/
> >
> > - New option `--maximum-field-alignment=N'
> 
> Also as a compiler directive $maximum-field-alignment=N.
> 
> It works great, for example the following data structure
> 
>   type word8  = cardinal(  8);
>          word16 = cardinal( 16);
>          word32 = cardinal( 32);
>          rec = record
>                       a, b, c: word8;
>                       d: word16;
>                       e: word32
>                end;
> 
> returns different sizes (in bytes) for different aligments (in bits):
> 
> N=0             size=12
> N=32    size=12
> N=16    size=10
> N=8             size=9

Huh?  By my reckoning everything is fouled.  N=32 should yield 20,
n=16 --> 12, n=8 seems ok.

-- 
Chuck F (cbfalconer at yahoo.com) (cbfalconer at worldnet.att.net)
   Available for consulting/temporary embedded and systems.
   <http://cbfalconer.home.att.net>  USE worldnet address!




More information about the Gpc mailing list