caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* ocamldot for ocaml-2.04
@ 1999-11-29 19:06 Trevor Jim
  1999-11-30  8:40 ` Jean-Christophe Filliatre
  0 siblings, 1 reply; 2+ messages in thread
From: Trevor Jim @ 1999-11-29 19:06 UTC (permalink / raw)
  To: caml-list

If you use ocamldot to generate program dependency graphs for ocaml
programs, and you are upgrading to ocaml-2.04, you may want to get the
latest version from my web site,

    www.cis.upenn.edu/~tjim.

(The old version does not work when compiled with 2.04.)


The README follows if you want to know more about ocamldot.

-Trevor



------------------------------------------------------------------------

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

or

  ocamldep *.ml > .depend
  ocamldot .depend > dep.dot

This will output a dot graph into the file dep.dot.  You can then use
the program dotty to view, edit, and print the graph.

Ocamldot has the following options:

  -fullgraph   draw the full graph (default is to draw only the kernel)
  -landscape   output in landscape format (default is portrait)
  -lr          draw graph from left to right (default is top to bottom)
  -r <r>       use <r> as a root in the graph; nodes reachable from <r>
               will be shown

(The transitive kernel of a dag is the smallest subset of the dag
whose transitive closure is the same as the transitive closure of the
dag.  For example, the kernel of A->B, A->C, B->C is just the two
edges A->B, B->C.)

-Trevor Jim




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: ocamldot for ocaml-2.04
  1999-11-29 19:06 ocamldot for ocaml-2.04 Trevor Jim
@ 1999-11-30  8:40 ` Jean-Christophe Filliatre
  0 siblings, 0 replies; 2+ messages in thread
From: Jean-Christophe Filliatre @ 1999-11-30  8:40 UTC (permalink / raw)
  To: Trevor Jim; +Cc: caml-list


> 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




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1999-12-02  7:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-11-29 19:06 ocamldot for ocaml-2.04 Trevor Jim
1999-11-30  8:40 ` Jean-Christophe Filliatre

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).