From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: weis Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id JAA12453 for caml-redistribution; Tue, 30 Nov 1999 09:26:37 +0100 (MET) Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id UAA00483 for ; Mon, 29 Nov 1999 20:09:56 +0100 (MET) Received: from mail-blue.research.att.com (mail-blue.research.att.com [135.207.30.102]) by nez-perce.inria.fr (8.8.7/8.8.7) with ESMTP id UAA23850 for ; Mon, 29 Nov 1999 20:09:54 +0100 (MET) Received: from bigmail.research.att.com (bigmail.research.att.com [135.207.30.101]) by mail-blue.research.att.com (Postfix) with ESMTP id F14234CE0E for ; Mon, 29 Nov 1999 14:09:53 -0500 (EST) Received: from PC-TREVOR.research.att.com (pc-trevor.research.att.com [135.207.23.235]) by bigmail.research.att.com (8.8.8/8.8.8) with ESMTP id OAA24102 for ; Mon, 29 Nov 1999 14:09:53 -0500 (EST) To: caml-list@inria.fr Subject: ocamldot for ocaml-2.04 From: Trevor Jim Date: 29 Nov 1999 14:06:48 -0500 Message-ID: User-Agent: Gnus/5.070098 (Pterodactyl Gnus v0.98) Emacs/20.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: weis 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 use as a root in the graph; nodes reachable from 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