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

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Noel Welsh <noelwelsh@y...>
Subject: Re: [Caml-list] Tail recursion detection
Tail calls are a syntactic property of the language
hence there should be no need for a tail recursion
detector beyond a trivial syntactic analysis.  I.e. it
should get 'em all.

E.g. Page 329 of 'Modern Compiler Implementation in

... the B_i are in tail contexts, but the C_i are not:

3. if C_1 then B_1 else B_2


--- John Max Skaller <> wrote:
> I'm in the process of writing a tail recursion
> detector for 
> Felix...
> My question is: how smart is the Ocaml tail call
> detector?
> Can I optimise the above code like:

Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: