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] OCaml to C
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-05-09 (19:48)
From: David Brown <caml-list@d...>
Subject: Re: [Caml-list] OCaml to C
On Sun, May 09, 2004 at 11:50:00AM +0300, Jere Sanisalo wrote:

> Because ocaml compilers/runtimes do not exist for every platform (say,
> consoles). And because compiling to C code could allow you to write
> independent libraries for others to use.

The runtime is actually there for a reason.  It is much of what makes
ocaml, ocaml.  Even if you could generate C code from ocaml (it probably
wouldn't be very good, unless you did lots of non-compiler-portable
tricks like GHC), it would still need the same kind of runtime.  Ocaml
programs generate a lot of short-lived garbage.  Without a garbage
collector, the program would eat up a lot of memory.

The native code runtime isn't very big.

I think effort would be better spent porting the runtime to these new

Dave Brown

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: