From: AYeryomin AT excelsior-usa DOT com (Alex Yeryomin) Newsgroups: comp.os.msdos.djgpp Subject: How to align members/data under gcc/DJGPP? Date: 27 Jun 2002 06:30:36 -0700 Organization: http://groups.google.com/ Lines: 22 Message-ID: <96eb2770.0206270530.3d2253dc@posting.google.com> NNTP-Posting-Host: 212.164.176.30 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1025184637 20752 127.0.0.1 (27 Jun 2002 13:30:37 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: 27 Jun 2002 13:30:37 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com 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? 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? Best regards, Alex