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>
|Subject: ||Re: What compiler option to use for struct member byte alignment ?
|Date: ||1 Jun 2004 12:02:36 GMT
|References: ||<c9hg8l$ik4$1 AT reader13 DOT wxs DOT nl>
|X-Trace: ||news.uni-berlin.de 647C5OMzoRuJZ7+Sbqt9JwIh0yXg+ObmnAtv5dJ2DR9ODBAaJk3RN98wkl
|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 -