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
ocaml inlining
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 1997-03-26 (08:24)
From: Mark Hayden <hayden@c...>
Subject: ocaml inlining

In the recent versions of Ocaml, are functions inlined
across modules?  Across files?  If so, what is the effect of
compiling several files with different levels of inlining?

The Ocaml documentation describes the inlining option as follows:

-inline n
     Set aggressiveness of inlining to n, where n is a positive integer. Specifying -inline 0
     prevents all functions from being inlined, except those whose body is smaller than the call
     site. Thus, inlining causes no expansion in code size. The default aggressiveness,
     -inline 1, allows slightly larger functions to be inlined, resulting in a slight expansion in
     code size. Higher values for the -inline option cause larger and larger functions to
     become candidate for inlining, but can result in a serious increase in code size.

thanks, Mark