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

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2003-01-27 (16:59)
From: Daniel Andor <da209@c...>
Subject: Re: [Caml-list] Re: Coyote Gulch test in Caml
On Tuesday 21 January 2003 9:56 am, Xavier Leroy wrote:
[snip various optimisationsm, including:]
> I also played with a "-ffast-math" flag for ocamlopt, whereas some math
> functions (sin, cos, sqrt, log) are directly expanded into x86
> instructions.  With this, we get 85% of the performance of g++ -O3,
> which isn't bad, and 2/3 of the performance of g++ -O3 -ffast-math.
> At any rate, the changes above to the OCaml code generator need to be
> tested more before possible inclusion in the next release.  Never
> trust code that you wrote in an airplane, especially while fighting
> for the armrest with an elderly central European lady who doesn't
> understand any of the languages that you speak :-)

Would it be possible to try some of these optimisation patches, if you have 
them? (such as float storing, inlining, SSE2?) 

I would be particularly interested to see how you include it in the ocamlopt 
compiler code, which I'm trying to understand...

Incidentally, what's a good way to learn the layout and functioning of the 
asmcomp compiler? (docs?)

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