[MLton-devel] Dwarf-2 vs. Stabs

Matthew Fluet fluet@CS.Cornell.EDU
Thu, 3 Oct 2002 07:33:35 -0400 (EDT)


> I'm reading over the changes in Red Hat 8.0 (which I haven't downloaded yet)
> and I see that GCC 3.2 has switched to useing Dward-f and Dwarf-3 extensions
> instead of Stabs for debugging information.  In the old days we used the -g
> information with profiling.  Is this going to be a problem, or a problem with
> the native assembly we generate?

As far as native assembly goes, we just pass -Wa,-gstabs through gcc to
the assembler, so we're asking as to produce with Stabs debugging.
It looks like we can just pass -Wa,-gdwarf2 instead to get dwarf2
debugging.  I would expect that whatever version of binutils is in
Red Hat 8.0 would have compatible debugging tools with gcc.

It would be nice down the line sometime to write our own debugging
information into the native assembly to allow debugging of the original
source, but that is quite a ways off yet.

As far as profiling goes, we don't need debugging information.  The native
codegen dumps lots of labels into the assembly to demark the boundaries of
blocks and functions. 



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
MLton-devel mailing list
MLton-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mlton-devel