Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] mod_caml Makefile
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Martin Jambon <martin_jambon@e...>
Subject: Re: [Caml-list] Conditional Compilation (was mod_caml Makefile)
On Fri, 16 Apr 2004, Shawn Wagner wrote:

> On a related note, do either of the ocaml compilers do any dead code
> elimination?
>
> Things like not emitting any instructions for the else branch of
>
> let foo = true in
>  if foo then do_something else do_something_different

ocamlopt at least. Try ocamlopt -S.


Martin

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners