delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/06/01/08:16:25

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: What compiler option to use for struct member byte alignment ?
Date: 1 Jun 2004 12:02:36 GMT
Lines: 16
Message-ID: <2i39isFi9fjcU2@uni-berlin.de>
References: <c9hg8l$ik4$1 AT reader13 DOT wxs DOT nl>
X-Trace: news.uni-berlin.de 647C5OMzoRuJZ7+Sbqt9JwIh0yXg+ObmnAtv5dJ2DR9ODBAaJk3RN98wkl
X-Orig-Path: not-for-mail
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

PT <ptalloen AT hotmail DOT com> wrote:
> What compiler option to use for struct member byte alignment ?

None, because you shouldn't do that.  It's almost guaranteed to be the
wrong way of solving the actual problem, and it would completely break
compatibility of the code you compiled with any precompiled code, most
notably the code making up the DJGPP C runtime library.

Anyway: this is a pure GCC question, quite independant of DJGPP.
Which is why the answer is in the GCC docs:

	info gcc "C Extensions" "Variable Attributes"

-- 
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.

- Raw text -


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