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 code generator question
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2009-05-11 (01:36)
From: Jon Harrop <jon@f...>
Subject: Re: [Caml-list] Ocamlopt x86-32 and SSE2
On Sunday 10 May 2009 12:04:13 David MENTRE wrote:
> Regarding option 2, I assume that byte-code would still work on i386
> pre-SSE2 machines? So OCaml programs would still work on those machines.
> As far as I know, one is using ocamlopt to improve performance. I can't
> think of any case where one would need native code running on pre-SS2
> machines which are so outdated performance-wise.
> So I would vote for option 2: always use SSE2 float arithmetic.

Note that you can use the same argument to justify not optimizing the x86 
backend because power users should be using the (much more performant) x64 
code gen.

Dr Jon Harrop, Flying Frog Consultancy Ltd.