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
Running bytecode...
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2005-06-17 (09:48)
From: Alex Baretta <alex@b...>
Subject: Re: [Caml-list] Running bytecode...
Jonathan Roewen wrote:
> How can I load & run ocaml bytecode from my ocaml program that's built
> with the nativecode compiler tools?
> Jon

The short answer is you can't. It's a pity, but to the present day the
vanilla Ocaml distribution does not support mixing native and byte-code.
Also, it is not possibile to Dynlink native code, which is even more of
a pity.

There are libraries and patches to achieve this; however, they are
hardly maintained. I remember Asmdynlink, which was in the now defunct
CDK (Caml develpment kit). There is a also a patch to the compiler (3.07
last time I looked at it) which also allows native dynlink.


Baretta DE&IT
A division of Baretta SRL

tel. +39 02 370 111 55
fax. +39 02 370 111 54

Our technology:

The Application System/Xcaml (AS/Xcaml)

The FreerP Project