Date: Mon, 16 Dec 1996 17:10:35 +0200 (IST) From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> To: John Eccleston <johne AT parallax DOT co DOT uk> cc: djgpp AT delorie DOT com Subject: Re: Padding Question In-Reply-To: <58ltk9$i1n@red.parallax.co.uk> Message-ID: <Pine.SUN.3.91.961216170705.18715B-100000@is> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Wed, 11 Dec 1996, John Eccleston wrote: > When using DEC C/C++ on Alpha work stations we could get > around padding problems by rearranging structures [snip] > and then all the padding would move to the end of the structure > and to all intents and purposes be ignored. Is this the case with > gcc/gxx? Yes, gcc does the same, but it isn't true that the padding can be ignored in this case, because if you read an array of structs from a disk file, you still need to take it into account, because the slack space is written to the file. The DJGPP FAQ list discusses this issue at somewhat more length in section 22.9.