how to pack data structures (i386)?

Will Menninger william.l.menninger@boeing.com
Wed Apr 11 17:24:00 GMT 2001


Hello,

I've found gcc to be an extremely reliable compiler.  Thanks for your
efforts.  I have a question for you:

I'm using gcc (2.7.something) with an i386 system.  Is there a compiler
option or a #pragma statement I can use to have it pack data structures
as tightly as possible (e.g. not pad char's out to 4-bytes)?

-Will Menninger
------------------------------------------------------------------------------
William L. Menninger, Senior Staff Engineer   | 310 517 6271 voice
Boeing Electron Dynamic Devices, Inc.         | 310 517 6873 fax
MS 232/4058A, 3100 Lomita, Torrance, CA 90505 | william.l.menninger@boeing.com
------------------------------------------------------------------------------



More information about the Gcc mailing list