Subject: Re: g++ exceptions and gprof profiling
To: None <port-arm32@NetBSD.ORG>
From: Tony Houghton <tony@tonyh.tcp.co.uk>
List: port-arm32
Date: 07/08/1997 22:23:40
In message <19970708.212819.41@impala.demon.co.uk>
          Adam Gundy <adam@impala.demon.co.uk> wrote:

> The only problem I can see, is that there is a possibility that
> functions in the chain with no constructed objects will simply be
> skipped (leaving blocks of stack on the heap). I'd have to look
> further into that, but I'd guess that the current exception solution
> probably just generates cleanup for all functions - perhaps better
> exception code would be bad in this case :-(.

I don't think it's too much of a problem. AFAIK the RTS knows any  stack
chunks left over in this way are still there and can reuse them later;
and exceptions *should* (if not misused) be rare enough or local enough
to avoid a silly number of them building up.

-- 
  \_________________
                    \  http://www.tcp.co.uk/~tonyh/
   The Curling Pages \ The home of WinEd, Bombz and NewsFind for RISC OS