English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
optimizing trivial functions
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2006-11-21 (23:20)
From: Sean McLaughlin <seanmcl@c...>
Subject: optimizing trivial functions
Hello,

   Will the Ocaml compiler optimize the following code to let y = ()?
I'm designing a program that will depend heavily on whether this code
is optimized in this way.

let f x1 x2 ... x100 = ()
let y = f x1 ... x100

Thanks,

Sean