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

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2008-08-05 (17:28)
From: Stéphane Glondu <steph@g...>
Subject: Re: [Caml-list] parameter passing optimizations
Warren Harris wrote:
> I've been wondering whether the ocaml compiler does any sort of
> parameter passing optimizations for data structures, e.g. stack
> allocating, or destructuring them when it can determine their scope does
> not escape the call. My first conclusion is that it does for tuples
> only, but I wanted to see what others might know.

Maybe you can check it out yourself with the -dinstr option of ocamlc,
or the -S option of ocamlopt.