Related articles |
---|
Optimizing structure layout erik.schnetter@student.uni-tuebingen.de (1997-03-21) |
Re: Optimizing structure layout dolby@cs.uiuc.edu (Julian Dolby) (1997-03-22) |
Re: Optimizing structure layout fjh@mundook.cs.mu.OZ.AU (1997-03-22) |
Re: Optimizing structure layout cdg@nullstone.com (Christopher Glaeser) (1997-03-22) |
Re: Optimizing structure layout meissner@cygnus.com (Michael Meissner) (1997-03-27) |
Re: Optimizing structure layout dlmoore@ix.netcom.com (David L Moore) (1997-03-27) |
Re: Optimizing structure layout tl@funcom.com (1997-03-31) |
Re: Optimizing structure layout pieper@zko.dec.com (John Pieper) (1997-03-31) |
Re: Optimizing structure layout bonnardv@pratique.fr (Valentin Bonnard) (1997-03-31) |
From: | Michael Meissner <meissner@cygnus.com> |
Newsgroups: | comp.compilers |
Date: | 27 Mar 1997 13:29:19 -0500 |
Organization: | Compilers Central |
References: | 97-03-130 |
Keywords: | storage, optimize, comment |
erik.schnetter@student.uni-tuebingen.de writes:
> 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
meissner@cygnus.com, 617-354-5416 (office), 617-354-7161 (fax)
[Well, there's always the "as if" rule. -John]
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.