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
Using OCaml in a kernel
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-12-06 (00:48)
From: Jonathan Roewen <jonathan.roewen@g...>
Subject: Using OCaml in a kernel
Hi All,

I'm developing an operating system, and I want to write as much of it
as possible in OCaml. I had hoped to use the ocamlopt compiler, and
have it target i586-elf, like my gcc (3.4.1) cross-compiler. I'm using
newlib with my cross-compiler, so I have a C library available.

However, I'm lost at how to get OCaml into the mix. Anyone able to
offer some suggestions of the sorts of things I could try?

Currently I have a single .ml file that will hopefully start all the
major tasks, and a couple of supporting C files, and I'm trying to
jump into OCaml from my main function in C-land.


Jonathan Roewen