🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #42192

Re: Help: How do I specify byte allignments for structures?

#42192
From: Alexander Trump
Date: Wed, 27 Dec 1995 00:00
18 lines
788 bytes
LANShark02 (lanshark02@aol.com) wrote:
: I am using gcc 2.7.0. I want to be able to specify 'Struct Member Byte
: Alignment' for code generations. Can someone help me?

Look @ `info gcc':

struct	foo
{
	
	int	f1;
	char	f2 __attribute__ ((packed));
};

for example. Note double parenthesis!

--

Sincerely, Alexander.
Technical Details
Message-ID: <DK8K7D.IM@infolada.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <4akk08$at6@newsbf02.news.aol.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,daacfd4512983fd2
X-Google-Attributes: gid11318c,public
From: assa@infolada.com (Alexander Trump)
Subject: Re: Help: How do I specify byte allignments for structures?
Date: 1995/12/27
Message-ID: <DK8K7D.IM@infolada.com>
X-Deja-AN: 122960378
sender: news@infolada.com (Operator)
references: <4akk08$at6@newsbf02.news.aol.com>
organization: JV InfoLada
newsgroups: gnu.gcc.help