Re: [Caml-list] parameter passing optimizations

2008-08-05 Thread Stéphane Glondu
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 >

[Caml-list] parameter passing optimizations

2008-08-05 Thread Warren Harris
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