Article View: gnu.gcc.help
Article #86Re: gcc & rs6000 packed data structures
From: Chip Salzenberg
Date: Wed, 08 Apr 1992 20:16
Date: Wed, 08 Apr 1992 20:16
22 lines
1009 bytes
1009 bytes
According to schuman@msus1.msus.edu:
> typedef struct {
> char a[13];
> int b;
> } c;
>
>I want to compile the program so it will pack the data structure [to a
>size of] 17.
You can do that with this syntax:
typedef struct {
char a[13];
int b __attribute__ (( packed, align(1) ));
};
_HOWEVER_, this feature is broken for structure members in 2.1. RMS
has patches from me to fix the bugs, so they will presumably be part
of the 2.2 release. (I hope!)
--
Chip Salzenberg at Teltronics/TCT <chip@tct.com>, <73717.366@compuserve.com>
"Informix 4GL is not a 4G, and it's barely an L." -- John Tombs
Technical Details
Message-ID:
<29E354B3.416B@tct.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!sybus.sybus.com!myrddin!tct!chipReferences:
<1992Mar31.222837.332@msus1.msus.edu>Show Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!sparky!uunet!sybus.sybus.com!myrddin!tct!chip From: chip@tct.com (Chip Salzenberg) Subject: Re: gcc & rs6000 packed data structures Message-ID: <29E354B3.416B@tct.com> Date: Wed, 08 Apr 1992 20:16:50 GMT References: <1992Mar31.222837.332@msus1.msus.edu> Organization: TC Telemanagement, Clearwater, FL