This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: dynamic library cost (was RE: libtool, java woes)
- To: "Jonathan P. Olson" <olson at mmsi dot com>
- Subject: Re: dynamic library cost (was RE: libtool, java woes)
- From: Fergus Henderson <fjh at cs dot mu dot oz dot au>
- Date: Sun, 15 Apr 2001 00:49:56 +1000
- Cc: hans_boehm at hp dot com, gcc at gcc dot gnu dot org, java at gcc dot gnu dot org
- References: <20010413115234.16A28F28A1@nile.gnat.com> <200104131451.AAA11537@mulga.cs.mu.OZ.AU>
On 13-Apr-2001, Jonathan P. Olson <olson@mmsi.com> wrote:
> Does anybody have a feel for the costs of non-conservative stack
> scanning?
>
> Seems like the compiler would have to emit a ton of debugging information
> to specify the contents of each word of the stack frame at each PC
> location within the program. Wading through all this mess in a GC
> would likely be more costly than just conservatively scanning the stacks.
You don't necessarily need such information for each PC location;
for example, for single-threaded applications it's enough to record
such information for each call site or heap allocation.
--
Fergus Henderson <fjh@cs.mu.oz.au> | "I have always known that the pursuit
| of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.