Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] disassembling cmo files
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Jonathan Roewen <jonathan.roewen@g...>
Subject: Re: [Caml-list] disassembling cmo files
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 which should do it.

I tried compiling, but it complains about an undefined field in
debug_event, line 391 (ocaml3.09.0).