Mail Archives: djgpp/1995/07/28/08:43:01
ghogenso AT u DOT washington DOT edu (Gordon Hogenson) wrote:-
> BTW, there is a new option in gcc 2.7.0: -fpack-struct (or something
> similar) which causes all structs to be packed, with no messing about with
> attributes!
Why not pack structs etc anyway by default? On a PC, (rounding every member's
width to a multiple of 2 or 4 bytes) achieves nothing except wasting store and
annoying people who want to make a struct match some assembly-coded table (as
e.g. when calling some interrupts).
- Raw text -