Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] huuuuuge executable with pxp
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-09-21 (08:23)
From: Gerd Stolpmann <info@g...>
Subject: Re: [Caml-list] huuuuuge executable with pxp
On Die, 2004-09-21 at 10:03, Paul Argentoff wrote:
> Deal All,
> I really like pxp, but one thing makes me unhappy: when I compile my program 
> with "ocamlfind ocamlopt -package pxp", the resulting executable is ~3M 
> big. Is there any way of reducing this size? All I need is 
> parse/transform/write an UTF-8 XML text. What lexers are needed, what are 
> not?

I guess you did not install wlex or ulex.

The biggest part of the executable are the UTF-8 lexing tables of the
ocamllex-based lexer (about 1M). By switching to the wlex or ulex lexer
(the latter is only present in the newest release, but simpler to
build), you can reduce the size of the executable significantly. These
alternative lexers are a bit slower, however. After building them,
compile your program with -package pxp-engine,pxp-ulex-utf8 or

In general you need only the lexer that corresponds to the internal
representation of the XML data.

Gerd Stolpmann * Viktoriastr. 45 * 64293 Darmstadt * Germany

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: