[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ 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