X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Hans-Bernhard Broeker 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: 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 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.