[plt-scheme] Re: large blocks inside cstructs

From: Dave Herman (dherman at ccs.neu.edu)
Date: Mon Dec 18 00:40:51 EST 2006

>> I'm considering creating a small fixed prefix of the sequence of
>> blocks of size 2^n bytes (say, from _byte up to _kilobyte) and use
>> the largest chunks possible in the implementation of
>> define-inline-cstruct.
> 
> I don't think that this will work right -- I think that the alignment
> of these blocks will always be 4 bytes.

Does that mean that my current solution is wrong too? I supposedly have 
260 adjacent byte fields (and ctype-sizeof reports 260 bytes), but are 
they all 4-byte-aligned?

Dave


Posted on the users mailing list.