[KLUG Hardware] Re: Join "HARDWARE" for "endian/alignment" -- word size != bytealignment, state machines ...

Jeremy Leonard hardware@kalamazoolinux.org
Thu, 16 Jan 2003 13:20:26 -0500


>On Thu, 2003-01-16 at 12:33, Jeremy Leonard wrote:
>> Right. I assumed it was for every variable in the structure. How long is
>> this Integer, Double, string, etc.
>
>No, still not the same thing.
>
>The first integer in a structure might be only 2 bytes, but it's might
>not be another 2 (or even 6!) bytes until you hit the next field.
>*YES*, there is just "empty" space in between.
>

So it's like cluster size on a disk. 4k cluster size, 2k file=4k used on
disk?

>That's "byte alignment" at work.
>
>> state machines?
>
>I won't go there.  Such classes are often dreaded, but quite necessary
>(and the knowledge underutilized)  ;-p
>
>
>--
>Bryan J. Smith, E.I. (BSECE)       Contact Info:  http://thebs.org
>[ http://thebs.org/files/resume/BryanJonSmith_certifications.pdf ]
>------------------------------------------------------------------
>* A lecture on software piracy from Bill Gates is like a lecture *
>* on adultry from the owner of a brothel of other people's wives *
>>
>>