Article View: gnu.gcc.help
Article #52190How to pack fields in struct?
From: Keith Bloom
Date: Mon, 18 Jan 1993 00:43
Date: Mon, 18 Jan 1993 00:43
12 lines
1015 bytes
1015 bytes
I recently started to use gcc 2.2.2 under SCO Unix 3.2. I need to pack structs; i.e., force alignment of fields on next available byte, rather than next multiple of two or four bytes. After searching the man page and the gcc.info* files, and trying the __attribute__ ((aligned(n))) syntax, BIGGEST_ALIGNMENT, and BIGGEST_FIELD_ALIGNMENT without success, I've been unable to find any facility in gcc to do this. Would someone please help me out? Thanks, Keith
Technical Details
Message-ID:
<C10y0y.G3n@aplcenmp.apl.jhu.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!darwin.sura.net!aplcen.apl.jhu.edu!aplcenmp!akbloomShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,9731048cf1b76736,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-01-17 16:43:45 PST Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!darwin.sura.net!aplcen.apl.jhu.edu!aplcenmp!akbloom From: akbloom@aplcenmp.apl.jhu.edu (Keith Bloom) Subject: How to pack fields in struct? Message-ID: <C10y0y.G3n@aplcenmp.apl.jhu.edu> Keywords: alignment Organization: The Johns Hopkins University Date: Mon, 18 Jan 1993 00:43:45 GMT Lines: 12