Date: Tue, 25 Mar 1997 10:36:15 -0500
From: Mark Hayden <email@example.com>
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:
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.
This archive was generated by hypermail 2b29 : Sun Jan 02 2000 - 11:58:10 MET