Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
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
platforms.

Dave Brown

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners