Path: utzoo!mnetor!uunet!husc6!necntc!ima!johnl From: zs@mulga.oz.au (Zoltan Somogyi) Newsgroups: comp.compilers Subject: Re: Looking for a reference to "Leaf Functions Optimization" Message-ID: <1008@ima.ISC.COM> Date: 7 May 88 21:55:45 GMT Sender: johnl@ima.ISC.COM Reply-To: Zoltan SomogyiLines: 24 Approved: compilers@ima.UUCP > An optimizing compiler can reduce the register saving/restoring (RSR) traffic > during function calls by changing the allocation of variables to registers > for leaf functions. ... > > This is a conventional optimization that is used in some compilers. I am > looking for a reference to it. ... Here is one: F. Chow, M. Himelstein, E. Killian, L. Weber: Engineering a RISC compiler system, Digest of Papers of the Thirtyfirst IEEE Computer Society International Conference (CompCon 86 Spring), February 1986, pp. 132-137. It describes the MIPS C compiler which has the optimization you mentioned. Zoltan Somogyi UUCP: {uunet,mcvax,ukc}!munnari.oz!zs ARPA: zs%munnari.oz@uunet.uu.net CSNET: zs%munnari.oz@australia -- Send compilers articles to ima!compilers or, in a pinch, to Levine@YALE.EDU Plausible paths are { ihnp4 | decvax | cbosgd | harvard | yale | bbn}!ima Please send responses to the originator of the message -- I cannot forward mail accidentally sent back to compilers. Meta-mail to ima!compilers-request