This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: dynamic library cost (was RE: libtool, java woes)


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]