|Optimizing structure layout firstname.lastname@example.org (1997-03-21)|
|Re: Optimizing structure layout email@example.com (Julian Dolby) (1997-03-22)|
|Re: Optimizing structure layout firstname.lastname@example.org.OZ.AU (1997-03-22)|
|Re: Optimizing structure layout email@example.com (Christopher Glaeser) (1997-03-22)|
|Re: Optimizing structure layout firstname.lastname@example.org (Michael Meissner) (1997-03-27)|
|Re: Optimizing structure layout email@example.com (David L Moore) (1997-03-27)|
|Re: Optimizing structure layout firstname.lastname@example.org (1997-03-31)|
|Re: Optimizing structure layout email@example.com (John Pieper) (1997-03-31)|
|Re: Optimizing structure layout firstname.lastname@example.org (Valentin Bonnard) (1997-03-31)|
|From:||Michael Meissner <email@example.com>|
|Date:||27 Mar 1997 13:29:19 -0500|
|Keywords:||storage, optimize, comment|
> While it is quite common that compilers optimize the code they
> produce, I haven't heard of a commonly used system that really
> optimizes the layout of the data structures that are generated. Are
> there such systems?
For many languages, it is impossible. C for one requires that
structure members be laid out in the order the programmer wrote them.
I believe C++ allows classes to be optimized, but again, not
structures. Also, structures are often times used to communicate with
OSes and external devices, which kind of depend on the ordering. You
also have to consider libraries and such, that may have been built by
somebody else years or months ago using exported structures, and to
which you don't have the sources.
Michael Meissner, Cygnus Solutions (East Coast)
4th floor, 955 Massachusetts Avenue, Cambridge, MA 02139, USA
firstname.lastname@example.org, 617-354-5416 (office), 617-354-7161 (fax)
[Well, there's always the "as if" rule. -John]
Return to the
Search the comp.compilers archives again.