[KLUG Hardware] Re: Join "HARDWARE" for "endian/alignment" -- word size != byte
alignment, state machines ...
Bryan J. Smith
hardware@kalamazoolinux.org
16 Jan 2003 12:48:20 -0500
--=-8NhRVKIEHPZoeQ/68Bdi
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
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.=20
*YES*, there is just "empty" space in between.
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
--=20
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 *
--=-8NhRVKIEHPZoeQ/68Bdi
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQA+JvBkDjEszaVrzmQRAkhVAKDB+nk0a6DbAXfHP6cpFZ5jAtOVXwCg3Mvf
OnrykgNGSeDPjiaFCpPwKr8=
=BiJf
-----END PGP SIGNATURE-----
--=-8NhRVKIEHPZoeQ/68Bdi--