Re: Data Structure Reorganizing Optimizations

john@iastate.edu (John Hascall)
Sat, 22 Oct 1994 13:42:20 GMT

          From comp.compilers

Related articles
CProf cache profiling system available david@cs.wisc.edu (1994-10-13)
Data Structure Reorganizing Optimizations [Was: Re: CProf cache profil glew@ichips.intel.com (1994-10-19)
Re: Data Structure Reorganizing Optimizations john@iastate.edu (1994-10-22)
Re: Data Structure Reorganizing Optimizations robertb@HING.LCS.MIT.EDU (1994-10-26)
Re: Data Structure Reorganizing Optimizations johnm@cory.EECS.Berkeley.EDU (1994-10-22)
Re: Data Structure Reorganizing Optimizations stripes@uunet.uu.net (1994-10-27)
Re: Data Structure Reorganizing Optimizations bret@icicle.winternet.com (1994-10-23)
Data Structure Reorganizing Optimizations leichter@zodiac.rutgers.edu (1994-10-31)
Re: Data Structure Reorganizing Optimizations yuri@shimari.cmf.nrl.navy.mil (1994-10-31)
[18 later articles]
| List of all articles for this month |

Newsgroups: comp.arch,comp.compilers
From: john@iastate.edu (John Hascall)
Keywords: optimize, C
Organization: Iowa State University, Ames, Iowa (USA)
References: 94-10-108 94-10-141
Date: Sat, 22 Oct 1994 13:42:20 GMT

Andy Glew <glew@ichips.intel.com> wrote:
}Lebeck and Wood's CPROF paper
} Alvin R. Lebeck and David A. Wood, "Cache Profiling and the
} SPEC Benchmarks: A Case Study," IEEE Computer, October 1994.
}discusses, among other things, optimizations that aren't quite legal
}in C: rearranging data structures, such as structure element order,
}converting array of structs to structs or arrays, etc.
    ...
}I believe that C's rules about data structure organization are
}obsolete. Certainly, they are not in the ken of the usual programmer
}using C or C++. Why not permit compilers to do such "illegal" data
}structure reorganizations, bringing the performance gains Lebeck and
}Wood describes to the standard application?


Perhaps a "struct" should be paddable and/or reorganizable
and a "packed struct" should not.


struct blah { packed struct udphdr {
char thing; uint16 sport,dport;
int thang; uint16 dport;
char thong; uint16 cksum;
}; };


John
--
John Hascall
Systems Software Engineer
Project Vincent
Iowa State University Computation Center + Ames, IA 50011 + 515/294-9551


--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.