Related articles |
---|
Structure tag alignment problem jgg@pdn.paradyne.com (1991-12-15) |
Re: Structure tag alignment problem alex@vmars.tuwien.ac.at (1991-12-15) |
Re: Structure tag alignment problem megatest!djones@decwrl.dec.com (1991-12-16) |
Newsgroups: | comp.compilers |
From: | alex@vmars.tuwien.ac.at (Alexander Vrchoticky) |
Keywords: | C, GCC, question |
Organization: | Technical University Vienna, Dept. of Realtime Systems, AUSTRIA |
References: | 91-12-064 |
Date: | Sun, 15 Dec 1991 18:54:08 GMT |
jgg@pdn.paradyne.com (Joe Gabriel) writes:
> [description of different alignment of c structures
> on different processors/compilers and the resulting problems when using
> structures to communicate between processors deleted]
>
>[It shouldn't be too hard to change GCC to align everything on a word
>boundary -- look at the source file stor-layout.c. -John]
At the risk of stating the obvious, such a solution should only be
attempted when very good reasons for not using an external, portable
representation exist.
--
Alexander Vrchoticky alex@vmars.tuwien.ac.at
TU Vienna, CS/Real-Time Systems +43/1/58801-8168
[Good point, though in this case I believe that the two processors are
using shared memory, and reorganizing all the structures on the fly would
entail a significant performance hit. -John]
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.