From: Fabrice Le Fessant <fabrissimo@gmail.com>
To: caml-list@inria.fr
Subject: Re: [Caml-list] How to profile compiler's performance
Date: Sun, 26 Aug 2012 22:05:18 +0200 [thread overview]
Message-ID: <503A817E.20109@gmail.com> (raw)
In-Reply-To: <503A30A7.3030707@gmail.com>
Did you notice the same time behavior for both ocamlc.opt and
ocamlopt.opt ? If yes, the problem comes during typing or
pattern-matching compilation. If no, it comes from native code
generation, probably register allocation (after inlining of small
functions, some functions can become huge, with many variables
interfering).
Benedikt Meurer submitted a linear scan allocator at some point, you
might want to try to compile your file with his compiler to see if it
goes faster.
--Fabrice
On 08/26/2012 04:20 PM, Hongbo Zhang wrote:
> Hi List,
> I have a file which is only 410 lines, the compilation process takes
> nearly 1 minutes. Before my refactoring, it's compiled very fast.
> Is there a way to know which part the compiler spend most time in ?
> Many Thanks
>
next prev parent reply other threads:[~2012-08-26 20:05 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-26 14:20 Hongbo Zhang
2012-08-26 15:05 ` Gabriel Scherer
2012-08-26 19:10 ` oliver
2012-08-26 19:36 ` Gabriel Scherer
2012-08-26 19:59 ` Daniel Bünzli
2012-08-26 20:52 ` oliver
2012-08-27 0:14 ` oliver
2012-08-27 15:33 ` Markus Weißmann
2012-08-26 20:25 ` Hongbo Zhang
2012-08-26 20:05 ` Fabrice Le Fessant [this message]
2012-08-26 20:54 ` oliver
2012-08-27 8:00 ` Benedikt Meurer
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=503A817E.20109@gmail.com \
--to=fabrissimo@gmail.com \
--cc=caml-list@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