Mail Archives: djgpp/1996/12/16/10:31:01
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.
- Raw text -