[Mono-list] control flow graph support in monograph

Paolo Molaro lupus@ximian.com
Mon, 11 Mar 2002 18:11:39 +0100


On 03/11/02 Dan Lewis wrote:
> > What does the debugger care about the cfg?
> 
> I was thinking of a GUI attached to the debugger that highlights the basic
> blocks on a CFG as you step through the program. Completely unnecessary of
> course, just seems like a cool idea :)

Yeah, you can keep your children quiet while they watch the animated CFG
and continue our debugging session... :-)

> How complicated is the algorithm neato uses for the CFG generation? You may be
> able to write your own Forms program to do the same thing (obviously it
> wouldn't need all the bells and whistles that neato et al provide).

Well, neato deals with the positioning of the nodes and edges in a
generic graph. It's easy to handle the simple cases, but once you start
having tens or hundreds of nodes and edges with different sizes and
properties it becomes a mess (neato deosn't get it right either
sometimes, but it's the best free tool I have and no, I'm not going to
write a replacement, at least not in the foreseable future:-).

lupus

-- 
-----------------------------------------------------------------
lupus@debian.org                                     debian/rules
lupus@ximian.com                             Monkeys do it better