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: 2005-12-07 (10:12)
From: Oliver Bandel <oliver@f...>
Subject: Re: [Caml-list] disassembling cmo files
On Wed, Dec 07, 2005 at 10:52:25AM +0100, 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.

Both are very nice features but are a) undocumented and b) work
on the ml-file, not the cmo-files.

To have access to a cmo-file... well... IMHO maybe could be used to
combine Ocaml-stuff with other languages... e.g. dynamically loading
*.cmo's into C-programs...
(...should be possible to do that?!)