From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 8970BBB81 for ; Wed, 7 Dec 2005 11:02:27 +0100 (CET) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.193]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id jB7A2QN5023210 for ; Wed, 7 Dec 2005 11:02:27 +0100 Received: by zproxy.gmail.com with SMTP id i11so282097nzh for ; Wed, 07 Dec 2005 02:02:26 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=DP81kNR4LT9Hx5RQb6VTxep3n0kDiCM6cFZbAXzS2rhAkwbZLu2S8fydpJ0fAu1QqlxhXClVIg/LQW7bedXY6wcYBXlmkFFYq5VVNCZ5HJOkNT6AkZJV3rhBUntVQgc4dj9FM4ljBugMPI14GVQTX3Ouw/yCfdGvQnEsTuoOTPM= Received: by 10.64.232.11 with SMTP id e11mr1628621qbh; Wed, 07 Dec 2005 02:02:24 -0800 (PST) Received: by 10.65.35.10 with HTTP; Wed, 7 Dec 2005 02:02:24 -0800 (PST) Message-ID: Date: Wed, 7 Dec 2005 23:02:24 +1300 From: Jonathan Roewen To: david.baelde@ens-lyon.org Subject: Re: [Caml-list] disassembling cmo files Cc: caml-list@yquem.inria.fr In-Reply-To: <53c655920512070152jbafa79aw@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <44995.132.166.133.216.1133945726.squirrel@panel.lost-oasis.net> <53c655920512070152jbafa79aw@mail.gmail.com> X-Miltered: at nez-perce with ID 4396B332.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 cmo:01 bytecode:01 ocamlc:01 ocaml:01 toplevel:01 bytecode:01 -dlambda:01 iirc:01 ocaml:01 cvs:01 3.09.0:01 wrote:01 complains:01 undefined:01 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 On 12/7/05, David Baelde wrote: > Hi, > > A simple and interesting way to learn about the bytecode is the > -dinstr option of ocamlc and ocaml toplevel. It dumps a human-readable > version of the produced bytecode. Similarly, there is -dlambda. Yes, I've used that before, but those are pseudo instructions .. not what actually goes into a bytecode file I believe. > IIRC, the ocaml/tools directory (from Ocaml CVS) > contains a dumpobj.ml which should do it. I tried compiling, but it complains about an undefined field in debug_event, line 391 (ocaml3.09.0). Jonathan