|Layout of Structs firstname.lastname@example.org (1989-05-28)|
|Re: Layout of Structs email@example.com (1989-05-31)|
|Re: Layout of Structs firstname.lastname@example.org (1989-06-02)|
|Re: Layout of Structs aglew@mcdurb.Urbana.Gould.COM (1989-06-04)|
|Date:||Wed, 31 May 89 05:10:50 EDT|
>It is a Good Thing [tm] that structures are laid out in this way. As
>a hardware type, I often need to write device drivers. Being able to
>impose a structure onto a hardware memory map is a very useful thing,
Beware, however, that it is still possible for C structures to have
unnamed holes in them more or less wherever the compiler pleases. C
does *not* give you complete control of storage layout, and never has,
although in many compilers you can do pretty much what you want at the
price of having your code depend on assumptions about the compiler.
Case in point: on a 68020, are longs 16-bit aligned or 32-bit aligned?
Henry Spencer at U of Toronto Zoology
Return to the
Search the comp.compilers archives again.