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
time profiling and nested function inlining
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2006-12-07 (12:17)
From: Jon Harrop <jon@f...>
Subject: Re: [Caml-list] time profiling and nested function inlining
On Thursday 07 December 2006 10:43, Quôc Peyrot wrote:
> in the former,  the compiler doesn't detect the invariant "array.(i)"
> and keeps it inside the inner loop.
> I tried to pass -ccopt -O3 to ocamlopt but it didn't seem to change
> anything.

Ocamlopt doesn't do that optimisation and -ccopt won't have any effect unless 
you're compiling C code.

Dr Jon D Harrop, Flying Frog Consultancy Ltd.
Objective CAML for Scientists