🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #42019

Alignment of structs

#42019
From: Ralf Goertz
Date: Tue, 16 Jan 1996 00:00
11 lines
894 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: <4dg4ha$1j3@suncom.rz.hu-berlin.de>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <4dg469$1j3@suncom.rz.hu-berlin.de>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,185f7e9465716bba
X-Google-Attributes: gid11318c,public
From: Ralf Goertz <goertz@rz.hu-berlin.de>
Subject: Alignment of structs
Date: 1996/01/16
Message-ID: <4dg4ha$1j3@suncom.rz.hu-berlin.de>
X-Deja-AN: 135387385
references: <4dg469$1j3@suncom.rz.hu-berlin.de>
content-type: text/plain; charset=us-ascii
organization: Humboldt Universitaet zu Berlin
x-url: news:4dg469$1j3@suncom.rz.hu-berlin.de
mime-version: 1.0
newsgroups: gnu.gcc.help
x-mailer: Mozilla 1.1N (X11; I; Linux 1.2.13 i486)