Article View: gnu.gcc.help
Article #42018Alignment of structs
From: Ralf Goertz
Date: Tue, 16 Jan 1996 00:00
Date: Tue, 16 Jan 1996 00:00
11 lines
814 bytes
814 bytes
I frequently have to use large structs containing many different types. How do I tell gcc that it has to use a compact alignment. Example: sizeof(x) returns 944 on both a Sun workstation and a PC under Linux although x actually has a size of 900 (which is returned by Borland C on the same PC) Thanks, Ralf
Technical Details
Message-ID:
<4dg469$1j3@suncom.rz.hu-berlin.de>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,185f7e9465716bba,start X-Google-Attributes: gid11318c,public From: Ralf Goertz <goertz> Subject: Alignment of structs Date: 1996/01/16 Message-ID: <4dg469$1j3@suncom.rz.hu-berlin.de> X-Deja-AN: 135387384 content-type: text/plain; charset=us-ascii organization: Humboldt Universitaet zu Berlin x-url: news:gnu.gcc.help mime-version: 1.0 newsgroups: gnu.gcc.help x-mailer: Mozilla 1.1N (X11; I; Linux 1.2.13 i486)