From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id KAA08237; Sat, 17 Apr 2004 10:46:40 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id KAA01982 for ; Sat, 17 Apr 2004 10:46:38 +0200 (MET DST) Received: from out2.smtp.messagingengine.com (out2.smtp.messagingengine.com [66.111.4.26]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i3H8kbYM024310 for ; Sat, 17 Apr 2004 10:46:37 +0200 X-Sasl-enc: 4Z2I7f+gfI0H161jZZeN1g 1082191595 Received: from [192.168.1.100] (unknown [218.81.127.33]) by mail.messagingengine.com (Postfix) with ESMTP id CFC0CA5232C; Sat, 17 Apr 2004 04:46:34 -0400 (EDT) Date: Sat, 17 Apr 2004 16:46:26 +0800 (HKT) From: Martin Jambon X-X-Sender: martin@localhost To: Shawn Wagner Cc: caml-list@pauillac.inria.fr Subject: Re: [Caml-list] Conditional Compilation (was mod_caml Makefile) In-Reply-To: <20040417003951.GB848@speakeasy.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Miltered: at concorde by Joe's j-chkmail ("http://j-chkmail.ensmp.fr")! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 emitting:01 foo:01 foo:01 ocamlopt:01 ocamlopt:01 compilers:01 ocaml:01 caml:01 makefile:02 jambon:02 jambon:02 wrote:03 let:04 compilation:04 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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