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
Ocamlopt x86-32 and SSE2
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Jon Harrop <jon@f...>
Subject: Re: [Caml-list] Ocamlopt x86-32 and SSE2
On Monday 11 May 2009 09:05:08 Dmitry Bely wrote:
> I think it would be the major code rewrite (if ever possible). Merging
> SSE2 from amd64 into i386 code generator took about a day of my
> efforts. How much time LLVM integration would require? If it is that
> simple can you provide a proof-of-the-concept implementation?

Well, I can provide a complete garbage collected VM. :-)

The hard part of writing an LLVM backend for ocamlopt is probably getting LLVM 
to generate code that is compatible with OCaml's GC, particularly the stack. 
However, I believe Gordon Henriksen already did this:

  "Included in the pending LLVM garbage collection code generation  
changeset is an Ocaml frametable emitter." -

Unfortunately, I will not have any spare time until my next book is out...

Did any of the OCaml+LLVM student projects get funded in the end?

Dr Jon Harrop, Flying Frog Consultancy Ltd.