From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 78416BB81 for ; Mon, 10 Oct 2005 06:47:31 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j9A4lVoU021746 for ; Mon, 10 Oct 2005 06:47:31 +0200 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 GAA14487 for ; Mon, 10 Oct 2005 06:47:30 +0200 (MET DST) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.207]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j9A4lThx021739 for ; Mon, 10 Oct 2005 06:47:30 +0200 Received: by xproxy.gmail.com with SMTP id h28so1185282wxd for ; Sun, 09 Oct 2005 21:47:29 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=SYudamUCSsKuxXBQDjHi+lOvT9CukoMpBFyogPlxT0oaehXT/0om1fBhCeo/2is5FkACwz0HNacZF/zEQjiwKRqO6mf/9LH6uAqyFT7bq4YXIC1574I6LaMq806gclZ3Dj5mqrzLAyjGYgNG6HDnClCddJBRorrftsjvWKaNZUw= Received: by 10.70.18.5 with SMTP id 5mr3337068wxr; Sun, 09 Oct 2005 21:47:29 -0700 (PDT) Received: by 10.70.132.17 with HTTP; Sun, 9 Oct 2005 21:47:29 -0700 (PDT) Message-ID: <4816a32d0510092147m7082df6m62365487689ccefb@mail.gmail.com> Date: Mon, 10 Oct 2005 10:17:29 +0530 From: Ganesh Narayan To: caml-list@inria.fr Subject: Caml Call Graphs In-Reply-To: <4816a32d0510091915s75644e8drcd7f551401f102f2@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <4816a32d0510091915s75644e8drcd7f551401f102f2@mail.gmail.com> X-Miltered: at nez-perce with ID 4349F263.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 4349F261.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; binary:01 subset:01 functions:01 data:02 caml:02 caml:02 functional:02 gprof:03 languages:03 analysis:08 useful:08 research:11 aren't:11 graphs:11 difficult:12 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_BY_IP autolearn=disabled version=3.0.3 Hi, Is there a way to generate the call-graph of a Caml project? Tools like gprof aren't accurate enough as higher order functions get "flattened" in the binary. I understand that Control/Data Flow Analysis for functional languages is _difficult_; but even a less encompassing call-graph generator would help us comprehend the code lot better and faster. Does anyone know of a tool that could generate call-graphs for a useful subset of Caml? Thanks --ganesh =3D------------------------------+---------------------------------=3D Ganesh Narayan, Research Assistant, Dept. of CSA, IISc. =3D------------------------------+---------------------------------=3D