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.