From: Michel Mauny <Michel.Mauny@inria.fr>
To: Hendrik Tews <tews@tcs.inf.tu-dresden.de>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] factor 5 speed increase for natively compiled camlp4 parsers
Date: Wed, 23 Jun 2004 17:07:25 +0200 [thread overview]
Message-ID: <20040623150725.GA2294@quincy.inria.fr> (raw)
In-Reply-To: <16580.63367.560204.157305@ithif51.inf.tu-dresden.de>
Dear Henrik,
Hendrik Tews wrote/écrivait (Tue, Jun 08, 2004 at 01:17:27AM +0200):
> QUESTIONS TO EXPERTS AND CAMLP4 MAINTAINERS:
> 1. Why is the -linkall neccessary? Its clear to me that one needs
> the -linkall when building camlp4o. However, I don't
> understand why camlp4o.opt needs the -linkall.
It is because of the programming style used in the modules to be
linked: some of them are not referenced (and therefore not linked in
without -linkall), but have useful actions in their initialisation
code, such as fill in an external reference with a function they've
just defined. The -linkall option makes sure that all initialisation
codes are executed.
Now I agree with you that it looks strange. What I did (in the CVS)
is to use -linkall for building camlp4.cmxa: this way your recipe
works even without -linkall.
> 2. Is the process that generates pa_o_fast.ml applicable to all
> camlp4 grammars?
No: it relies on the particular structure of files pa_o.ml and
pa_op.ml.
> Why is it not used for the revised syntax?
I suspect the revised syntax is meant to stay extensible, and this
extensibility would be lost if the parser was compiled `as much as'
the one obtained in pa_o_fast. This is just a guess: I don't master all
Camlp4 secrets (yet) ;-)
> What is the option -meta_action of pa_extend.cmo doing?
It decides wether actions are to be interpreted as expressions or
meta-expressions (expressions at the meta-level). In short, it decides
wether "2+3" is parsed as the expression 2+3 or the expression
<:expr<2+3>>.
> 3. Would it be possible to include a ``mknativecamlp4'' script
> that automates the described procedure in the next
> distribution?
I'll see what I can do, but note that this not a top priority right now.
> Would it be possible to build and install pa_o.cmx, pa_op.cmx,
> pa_o_fast.cmx, and odyl.cmx?
Done in the CVS.
Thanks,
-- Michel
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
next prev parent reply other threads:[~2004-06-23 15:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-07 23:17 Hendrik Tews
2004-06-23 15:07 ` Michel Mauny [this message]
2004-06-24 7:22 ` Hendrik Tews
2004-06-24 8:03 ` Michel Mauny
2004-07-09 15:28 ` Michel Mauny
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=20040623150725.GA2294@quincy.inria.fr \
--to=michel.mauny@inria.fr \
--cc=caml-list@inria.fr \
--cc=tews@tcs.inf.tu-dresden.de \
/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