[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ 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 my.ml", 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 pxp-wlex-utf8. In general you need only the lexer that corresponds to the internal representation of the XML data. Gerd -- ------------------------------------------------------------ Gerd Stolpmann * Viktoriastr. 45 * 64293 Darmstadt * Germany gerd@gerd-stolpmann.de http://www.gerd-stolpmann.de ------------------------------------------------------------ ------------------- 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