🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #51077

Structure alignment in GCC

#51077
From: Craig Ryhorchuk
Date: Tue, 29 Jun 1993 03:49
5 lines
1020 bytes
We're porting a program from cc to gcc, and need to maintain a structure
packed on byte boundaries (compiled using the #pragma pack(1) in cc).  What is
the GCC equivalent method of turning this on and off?  At present the structure
elements are being padded which causes the data file format to change, breaking
the program.  :-(  Any help gratefully appreciated.
Technical Details
Message-ID: <1993Jun29.034950.26955@jabaru.oz.au>
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!noc.near.net!uunet!munnari.oz.au!jabaru.cec.edu.au!craigr

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,407624ce383aa8e5,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-06-28 21:18:40 PST
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!noc.near.net!uunet!munnari.oz.au!jabaru.cec.edu.au!craigr
From: craigr@jabaru.oz.au (Craig Ryhorchuk)
Subject: Structure alignment in GCC
Organization: Jabaru Timesharing, Melbourne Australia
Date: Tue, 29 Jun 93 03:49:50 GMT
Message-ID: <1993Jun29.034950.26955@jabaru.oz.au>
Summary: How does one control structure alignment boundaries in GCC?
Keywords: GCC structures alignment pack
Lines: 6