Mail Archives: djgpp/2002/06/27/09:45:26

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
Lines: 22
Message-ID: <>
X-Trace: 1025184637 20752 (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


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

<- 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.

Best regards,


- Raw text -

  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019