From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=AWL autolearn=disabled version=3.1.3 Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id 2340FBB84 for ; Sun, 5 Oct 2008 09:53:01 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgMCAAIP6EhDz4HeiGdsb2JhbACTWwEBARUipAWBag X-IronPort-AV: E=Sophos;i="4.33,363,1220220000"; d="scan'208";a="15673784" Received: from fettunta.fettunta.org ([67.207.129.222]) by mail2-smtp-roc.national.inria.fr with ESMTP; 05 Oct 2008 09:53:00 +0200 Received: from usha.takhisis.invalid (unknown [10.17.0.18]) by fettunta.fettunta.org (Postfix) with ESMTP id 0A68F18126 for ; Sun, 5 Oct 2008 07:52:59 +0000 (UTC) Received: by usha.takhisis.invalid (Postfix, from userid 1000) id 46B926A98; Sun, 5 Oct 2008 09:51:49 +0200 (CEST) Date: Sun, 5 Oct 2008 08:51:49 +0100 From: Stefano Zacchiroli To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] Reading external references from cmo/cmx files Message-ID: <20081005075149.GC9116@usha.takhisis.invalid> References: <2738.192.168.2.3.1223151615.squirrel@192.168.2.5> <48E7D514.4070502@glondu.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <48E7D514.4070502@glondu.net> User-Agent: Mutt/1.5.18 (2008-05-17) X-Spam: no; 0.00; zacchiroli:01 zack:01 cmo:01 cmx:01 0200,:01 cmo:01 cmx:01 bytecode:01 cheers:01 zacchiroli:01 postdoc:01 zack:01 wrote:01 wrote:01 pps:01 On Sat, Oct 04, 2008 at 10:41:56PM +0200, Stéphane Glondu wrote: > Jason Noakes wrote: > > Are there any tools or examples that would allow me to take a .cmo or .cmx > > file and produce a list of the external modules that are referenced from > > that file? > > There is ocamlobjinfo. But it seems to work only with bytecode objects > (.cmo/.cma). Actually, sometimes ago, someone wrote an implementation of ocamlobjinfo for native code object, but unfortunately right I fail to find the reference on the Web. Does anybody remember it? Cheers. -- Stefano Zacchiroli -*- PhD in Computer Science \ PostDoc @ Univ. Paris 7 zack@{upsilon.cc,pps.jussieu.fr,debian.org} -<>- http://upsilon.cc/zack/ I'm still an SGML person,this newfangled /\ All one has to do is hit the XML stuff is so ... simplistic -- Manoj \/ right keys at the right time