caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Mark Hayden <hayden@cs.cornell.edu>
To: caml-list@pauillac.inria.fr
Subject: ocaml inlining
Date: Tue, 25 Mar 1997 10:36:15 -0500	[thread overview]
Message-ID: <199703251536.KAA12012@gulag.cs.cornell.edu> (raw)


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





             reply	other threads:[~1997-03-26  8:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-03-25 15:36 Mark Hayden [this message]
1997-03-26 10:20 ` Xavier Leroy
1997-03-27 20:21 Mark Hayden
1997-04-01  9:23 ` Xavier Leroy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199703251536.KAA12012@gulag.cs.cornell.edu \
    --to=hayden@cs.cornell.edu \
    --cc=caml-list@pauillac.inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).