X-Originating-IP: [200.34.143.5] From: "J. L." To: References: <96eb2770 DOT 0206270530 DOT 3d2253dc AT posting DOT google DOT com> Subject: Re: How to align members/data under gcc/DJGPP? Date: Thu, 27 Jun 2002 10:16:46 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Message-ID: X-OriginalArrivalTime: 27 Jun 2002 15:17:20.0971 (UTC) FILETIME=[BB7BE9B0:01C21DED] Reply-To: djgpp AT delorie DOT com ----- Original Message ----- From: "Alex Yeryomin" Newsgroups: comp.os.msdos.djgpp To: Sent: Thursday, June 27, 2002 8:30 AM Subject: How to align members/data under gcc/DJGPP? > Hello, > > I can't find in FAQ (sorry, maybe I missed it), how to align struct > members under gcc/DJGPP? What is pragma/option doing this? Is there > some way to specify the alignment only for some piece of code like > this: > > <- set alignment by 1 byte here to pack all members altogether. how? > struct zzz > { > ... > }; > <- reset alignment to default. how? > I'm not so sure if this can help you, but... Search on info files, i.e. info gcc, the pertitnent info is located on Node Variable attributes > > Is it possible to align also data object (variables) into the memory? > F.e., all variables should be alignment by the paragraph 16 bytes. > How? > You can find the answers in same node. > Best regards, > > Alex > J. L: