[lug] OFF: sizeof structs in gcc?
Scott A. Herod
herod at interact-tv.com
Thu Jun 7 12:50:41 MDT 2001
Hello,
This is a kind of off topic but I'm hoping to avoid the gcc lists.
Is it true that gcc allocates space for objects/stucts in 4 byte
words? Is there a way to avoid this?
Looks like winder's VC has a "#pragma pack" that can compact objects
but gcc seems to have nothing comparable. It's not really a problem.
That's what bcopy is for. I'm mainly just curious.
Thanks,
Scott Herod
More information about the LUG
mailing list