Mail Archives: djgpp/2002/06/27/11:17:23

X-Originating-IP: []
From: "J. L." <jlsgarrido AT hotmail DOT com>
To: <djgpp AT delorie DOT com>
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
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" <AYeryomin AT excelsior-usa DOT com>
Newsgroups: comp.os.msdos.djgpp
To: <djgpp AT delorie DOT com>
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:

- Raw text -

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