From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id 2D6A47F8A2 for ; Tue, 8 Apr 2014 19:32:46 +0200 (CEST) Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of Pietro.Abate@pps.univ-paris-diderot.fr) identity=pra; client-ip=194.254.61.138; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="Pietro.Abate@pps.univ-paris-diderot.fr"; x-sender="Pietro.Abate@pps.univ-paris-diderot.fr"; x-conformance=sidf_compatible Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of Pietro.Abate@pps.univ-paris-diderot.fr) identity=mailfrom; client-ip=194.254.61.138; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="Pietro.Abate@pps.univ-paris-diderot.fr"; x-sender="Pietro.Abate@pps.univ-paris-diderot.fr"; x-conformance=sidf_compatible Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@korolev.univ-paris7.fr) identity=helo; client-ip=194.254.61.138; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="Pietro.Abate@pps.univ-paris-diderot.fr"; x-sender="postmaster@korolev.univ-paris7.fr"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ah0CAJAyRFPC/j2KnGdsb2JhbABZg0GuBJZ9gSEWDgEBAQEBBg0JCRQogiUBAQEEOhkbGwsYCQQhDwUxPYdWAxUJw1IDhk0XjnMWgw6BFASYXIE1lD4 X-IPAS-Result: Ah0CAJAyRFPC/j2KnGdsb2JhbABZg0GuBJZ9gSEWDgEBAQEBBg0JCRQogiUBAQEEOhkbGwsYCQQhDwUxPYdWAxUJw1IDhk0XjnMWgw6BFASYXIE1lD4 X-IronPort-AV: E=Sophos;i="4.97,819,1389740400"; d="scan'208";a="67161094" Received: from korolev.univ-paris7.fr ([194.254.61.138]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 08 Apr 2014 19:32:26 +0200 Received: from mailhub.math.univ-paris-diderot.fr (mailhub.math.univ-paris-diderot.fr [81.194.30.253]) by korolev.univ-paris7.fr (8.14.4/8.14.4/relay1/46573) with ESMTP id s38HWQ1r013590 for ; Tue, 8 Apr 2014 19:32:26 +0200 Received: from mailhub.math.univ-paris-diderot.fr (localhost [127.0.0.1]) by mailhub.math.univ-paris-diderot.fr (Postfix) with ESMTP id C01682CC3A8 for ; Tue, 8 Apr 2014 19:32:26 +0200 (CEST) X-Virus-Scanned: amavisd-new at math.univ-paris-diderot.fr Received: from mailhub.math.univ-paris-diderot.fr ([127.0.0.1]) by mailhub.math.univ-paris-diderot.fr (mailhub.math.univ-paris-diderot.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id y5u-j0SC7y_m for ; Tue, 8 Apr 2014 19:32:25 +0200 (CEST) Received: from pps.univ-paris-diderot.fr (ip-61.net-81-220-116.brest.rev.numericable.fr [81.220.116.61]) (Authenticated sender: abate) by mailhub.math.univ-paris-diderot.fr (Postfix) with ESMTPSA id 32BF62CC3A2 for ; Tue, 8 Apr 2014 19:32:25 +0200 (CEST) Date: Tue, 8 Apr 2014 19:32:23 +0200 From: Pietro Abate To: caml-list@inria.fr Message-ID: <20140408173223.GA26883@zed.irill.org> References: <533C6FC2.9080406@fugmann.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <533C6FC2.9080406@fugmann.net> X-Operating-System: GNU/Linux X-Organization: PPS - =?iso-8859-1?Q?Universit?= =?iso-8859-1?Q?=E9?= Paris Diderot - Paris 7 User-Agent: Mutt/1.5.23 (2014-03-12) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (korolev.univ-paris7.fr [194.254.61.138]); Tue, 08 Apr 2014 19:32:26 +0200 (CEST) X-Miltered: at korolev with ID 534432AA.003 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)! X-j-chkmail-Enveloppe: 534432AA.003 from mailhub.math.univ-paris-diderot.fr/mailhub.math.univ-paris-diderot.fr/null/mailhub.math.univ-paris-diderot.fr/ X-j-chkmail-Score: MSGID : 534432AA.003 on korolev.univ-paris7.fr : j-chkmail score : . : R=. U=. O=. B=0.000 -> S=0.000 X-j-chkmail-Status: Ham Subject: Re: [Caml-list] Speeding up compilation For quite a while I've simply used pp(camlp4o.opt -I_build Camlp4MacroParser.cmxs) in my _tag file and make sure that the plugin Camlp4MacroParser.cmxs was either available on that I made available in the _build directory. In my makefile I have a rule I use to compile the plugin before calling ocamlbuild. If you use a configure script you can change accordingly these elements to use camlp4o instead of camlp4o.opt . camlp4cmxs: mkdir -p _build ocamlopt -shared $(shell ocamlc -where)/camlp4/Camlp4Parsers/Camlp4MacroParser.cmx -o _build/Camlp4MacroParser.cmxs p On 02/04/14 22:14, Anders Peter Fugmann wrote: > 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 > > > -- > Caml-list mailing list. Subscription management and archives: > https://sympa.inria.fr/sympa/arc/caml-list > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs >