Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
* Ocamldot -- generate program dependency graphs for ocaml
@ 1999-01-13 20:22 Trevor Jim
  0 siblings, 0 replies; only message in thread
From: Trevor Jim @ 1999-01-13 20:22 UTC (permalink / raw)
  To: caml-list

Ocamldot is available from http://www.cis.upenn.edu/~tjim/.


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 was derived from ocamldep, and is used in much the same way:

  ocamldot *.ml > dep.dot

This will output a dot graph into the file dep.dot.  The graph will
give the dependencies between the .ml files in the current directory.
If the files depend on other files not in the current directory (e.g.,
library files), they won't be shown in the graph.  Ocamldot can also
read .mll and .mly files.

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] only message in thread

only message in thread, other threads:[~1999-01-14  7:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-01-13 20:22 Ocamldot -- generate program dependency graphs for ocaml Trevor Jim

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox