Mail Archives: pgcc/1999/07/20/17:04:42
On Thu, Jul 15, 1999 at 01:36:35AM +0100, Vincent Diepeveen wrote:
> Good morning,
>
> What is currently the overhad of a function call at the
> PII, that this needs heavy optimization?
push, memory acesses, ...
> How many clocks for a typical call does pgcc need if we
> have 2 integer parameters for it?
I measured about 40 cycles on the first call and 8 cycles on subsequent
ones for a simple function adding two integers. About 2-3 cacles less with
register parameters.
On Wed, Jul 14, 1999 at 06:56:11PM -0700, Eugene Leitl wrote:
> The downside of having many registers is of course the need to save a
> lot of state when the need to switch context arises.
one context switch every hundred million function calls is, I think, not a
concern at all ;) However, I expect the register stack to be much larger
than the 128 visible registers, and there doubtlessly is special hardware
support to swap the stack easily.
On Thu, Jul 15, 1999 at 12:46:18PM +0000, Jens-Uwe Rumstich wrote:
> routines) it wants to have access to. These number of registers is
> reserved for this function and only them can be accessed
Yes.
> and only them have to be saved during a context switch
and the rest gets lost? ;)
--
-----==- |
----==-- _ |
---==---(_)__ __ ____ __ Marc Lehmann +--
--==---/ / _ \/ // /\ \/ / pcg AT goof DOT com |e|
-=====/_/_//_/\_,_/ /_/\_\ XX11-RIPE --+
The choice of a GNU generation |
|
- Raw text -