Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
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
http://www.ffconsultancy.com/products/ocaml_for_scientists