Path: utzoo!attcan!uunet!husc6!mailrus!cornell!uw-beaver!uw-june!pardo From: pardo@june.cs.washington.edu (David Keppel) Newsgroups: comp.arch Subject: Re: register save/restore Message-ID: <6339@june.cs.washington.edu> Date: 4 Nov 88 20:11:10 GMT References: <3300037@m.cs.uiuc.edu> <5938@killer.DALLAS.TX.US> <7580@aw.sei.cmu.edu> <2601@alliant.Alliant.COM> Reply-To: pardo@cs.washington.edu (David Keppel) Organization: U of Washington, Computer Science, Seattle Lines: 15 Disorganization: U of Washington, Computer Science, Seattle cantrell@alliant.Alliant.COM (Paul Cantrell) writes: >[ function inlining avoids leaf-register-allocation problems ] >[ also saves procedure call costs! ] If the leaf procedure is called often and the hardware has an I-cache, then inlining the leaves may make the code *slower*. At an extreme (cache-miss penalty is high and sequential instructions are not prefetched), callee saves might win simply on the basis of code and resulting miss-rate penalty. ;-D on ( The walking virus ) Pardo -- pardo@cs.washington.edu {rutgers,cornell,ucsd,ubc-cs,tektronix}!uw-beaver!june!pardo