ocaml inlining

From: Mark Hayden (hayden@cs.cornell.edu)
Date: Tue Mar 25 1997 - 16:36:15 MET

Date: Tue, 25 Mar 1997 10:36:15 -0500
Message-Id: <199703251536.KAA12012@gulag.cs.cornell.edu>
From: Mark Hayden <hayden@cs.cornell.edu>
To: caml-list@pauillac.inria.fr
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

This archive was generated by hypermail 2b29 : Sun Jan 02 2000 - 11:58:10 MET