Version française
Home     About     Download     Resources     Contact us    
Browse thread
ocamldot for ocaml-2.04
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Jean-Christophe Filliatre <Jean-Christophe.Filliatre@l...>
Subject: Re: ocamldot for ocaml-2.04

> Ocamldot generates program dependency graphs for ocaml programs.
> 
> The dependency graph output by ocamldot can be rendered by a separate
> program, dot.  Dot is freely available from
> 
>   http://www.research.att.com/sw/tools/graphviz/
> 
> Ocamldot is designed to process the output of ocamldep.  A typical use
> would be
> 
>   ocamldep *.ml | ocamldot > dep.dot

An even better use is

    ocamldep *.ml *.mli | ocamldot | dot -Tps | gv -

to see the dependencies, or

    ocamldep *.ml *.mli | ocamldot | dot -Tps | lpr

to print them. Unix is our friend :-)

And many thanks to Jim Trevor for that really useful tool.

-- 
Jean-Christophe FILLIATRE
  mailto:Jean-Christophe.Filliatre@lri.fr
  http://www.lri.fr/~filliatr