The camlp4 executable is specified in the META file of camlp4, namely by the "preprocessor" setting. So you could change that to camlp4.opt. This is not configured by default because not every syntax extension can be loaded into camlp4.opt, as it needs to be an cmxs. We would need here some wrapper that first checks whether the cmxs files are available, and switch to camlp4.opt only if this is the case. Gerd Am Mittwoch, den 02.04.2014, 22:34 +0200 schrieb Daniel Bünzli: > > Le mercredi, 2 avril 2014 à 22:14, Anders Peter Fugmann a écrit : > > > Is there any way to use a optimized version of camlp4. > > Not sure that this will work as it it not mentioned in the documentation [1] but did you try to add > > camlp4="camlp4.opt" > > in .opam/$SWITCH/lib/findlib.conf (or wherever it is on your machine). > > Best, > > Daniel > > [1] http://projects.camlcity.org/projects/dl/findlib-1.4.1/doc/ref-html/r775.html > > > -- ------------------------------------------------------------ Gerd Stolpmann, Darmstadt, Germany gerd@gerd-stolpmann.de My OCaml site: http://www.camlcity.org Contact details: http://www.camlcity.org/contact.html Company homepage: http://www.gerd-stolpmann.de ------------------------------------------------------------