caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Anders Peter Fugmann <anders@fugmann.net>
To: caml-list <caml-list@inria.fr>
Subject: [Caml-list] Speeding up compilation
Date: Wed, 02 Apr 2014 22:14:58 +0200	[thread overview]
Message-ID: <533C6FC2.9080406@fugmann.net> (raw)

Hi,

While trying to speed up compilation of a project of around ~150 source 
files, i found that ocamlfind invokes a bytecode version of CamlP4.

Our homemade Makefile uses ocamlfind to compile bytecode and optimized 
code as well as dependency tracking using ocamldep and hand written 
tools. Almost every source file makes use of p4 extensions.

When compiling though ocamlfind using the -syntax flag, I can see that 
ocamlfind starts ocamlp4 which is ocaml bytecode, and I cannot find any 
flags that allows me to use any optimized version. Also it seems that an 
optimized version of camlp4 is compiled (ocaml compiler is compiled via 
opam).

Is there any way to use a optimized version of camlp4. Also any other 
ideas on how to speed up compilation would be appreciated.

Regards
Anders Fugmann


             reply	other threads:[~2014-04-02 20:15 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-02 20:14 Anders Peter Fugmann [this message]
2014-04-02 20:34 ` Daniel Bünzli
2014-04-02 20:43   ` Fabrice Le Fessant
2014-04-02 20:54     ` Yotam Barnoy
2014-04-03  2:10       ` Francois Berenger
2014-04-02 21:00     ` Anders Peter Fugmann
2014-04-02 20:49   ` Anders Peter Fugmann
2014-04-02 21:09     ` Daniel Bünzli
2014-04-02 21:42   ` Gerd Stolpmann
2014-04-03 21:00     ` Anders Peter Fugmann
2014-04-04 20:55       ` Gerd Stolpmann
2014-04-08 17:32 ` Pietro Abate

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=533C6FC2.9080406@fugmann.net \
    --to=anders@fugmann.net \
    --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;
as well as URLs for NNTP newsgroup(s).