Related articles |
---|
[11 earlier articles] |
Re: Caller allocates space for callee-save registers dalamb@qucis.queensu.ca (1992-06-03) |
Re: Caller allocates space for callee-save registers andrew@rentec.com (1992-06-03) |
Re: Caller allocates space for callee-save registers preston@dawn.cs.rice.edu (1992-06-04) |
Re: Caller allocates space for callee-save registers pardo@cs.washington.edu (1992-06-04) |
Re: Caller allocates space for callee-save registers andrew@rentec.com (1992-06-05) |
Re: Caller allocates space for callee-save registers henry@zoo.toronto.edu (1992-06-05) |
Re: Caller allocates space for callee-save registers pardo@cs.washington.edu (1992-06-09) |
Re: Caller allocates space for callee-save registers andrew@rentec.com (1992-06-11) |
Re: Caller allocates space for callee-save registers pardo@cs.washington.edu (1992-06-15) |
Newsgroups: | comp.compilers |
From: | pardo@cs.washington.edu (David Keppel) |
Keywords: | registers, optimize, linker |
Organization: | Computer Science & Engineering, U. of Washington, Seattle |
References: | 92-05-123 92-06-030 |
Date: | Tue, 9 Jun 1992 01:09:54 GMT |
andrew@rentec.com (Andrew Mullhaupt) writes:
>[Few people think about codes where parameter passing is a substantial
> part of the call overhead. Such code is not unheard of.]
I disagree and I'll blow my own horn.
Code where parameter passing is a substantial part of the total cost is,
in fact, common, but you really need a stronger case than ``it's not
unheard of'' before it's generally worth optimizing.
Second, reducing call overhead from parameter passing is a day-to-day
optimiation, done e.g., through procedure inlining. If the callee is not
known statically, then it is possible (as e.g, in SELF) and perhaps
profitable to inline the function at runtime.
If you stand on your head and squint just right, I believe the dynamic
linking optimization descsribed in [92-06-030] wins partly because it's
doing dynamic inlining.
;-D oN ( Standing inline ) Pardo
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.