delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/04/01/00:03:44

X-Originating-Host: 202.158.46.2
Organization: http://www.remarq.com: The World's Usenet/Discussions Start Here
Subject: HELP : structures & DJGPP
Lines: 16
From: batchex <thedark1NOthSPAM AT phreaker DOT net DOT invalid>
Newsgroups: comp.os.msdos.djgpp
Message-ID: <113cad2a.dc3587b4@usw-ex0104-087.remarq.com>
Bytes: 719
X-Wren-Trace: eE9qQkNaHVccG1NCTg5cTQx8T0JYTg5ST1EOQkNPFl0QG0EfFFcUFRUAGQ==
Date: Fri, 31 Mar 2000 12:06:04 -0800
NNTP-Posting-Host: 10.0.2.87
X-Complaints-To: wrenabuse AT remarq DOT com
X-Trace: WReNphoon4 954533165 10.0.2.87 (Fri, 31 Mar 2000 12:06:05 PST)
NNTP-Posting-Date: Fri, 31 Mar 2000 12:06:05 PST
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hi,

I notice DJGPP/GCC generates by default, 4 bytes aligned
structures. Currently, I need at least 2 of my structures are
packed (no holes). I read the manual about a compiler option to
do this, but it will generate ALL structures as packed. I only
need 2 (or several more) structures packed, and others are
aligned. How can I do this? Are there any preprocessors that can
be used to tell the compiler if I want a specific structure to
be packed and else to be aligned?

BTW, anybody knows where I can find a documentation of all C/C++
preprocessors?

* Sent from RemarQ http://www.remarq.com The Internet's Discussion Network *
The fastest and easiest way to search and participate in Usenet - Free!

- Raw text -


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