caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] huuuuuge executable with pxp
@ 2004-09-21  8:03 Paul Argentoff
  2004-09-21  8:23 ` Gerd Stolpmann
  0 siblings, 1 reply; 3+ messages in thread
From: Paul Argentoff @ 2004-09-21  8:03 UTC (permalink / raw)
  To: ocaml

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?
-- 
Yours truly, WBR, Paul Argentoff.
Jabber: paul@jabber.rtelekom.ru
RIPE: PA1291-RIPE

-------------------
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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Caml-list] huuuuuge executable with pxp
  2004-09-21  8:03 [Caml-list] huuuuuge executable with pxp Paul Argentoff
@ 2004-09-21  8:23 ` Gerd Stolpmann
  2004-09-21 13:39   ` Paul Argentoff
  0 siblings, 1 reply; 3+ messages in thread
From: Gerd Stolpmann @ 2004-09-21  8:23 UTC (permalink / raw)
  To: argentoff; +Cc: ocaml

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Caml-list] huuuuuge executable with pxp
  2004-09-21  8:23 ` Gerd Stolpmann
@ 2004-09-21 13:39   ` Paul Argentoff
  0 siblings, 0 replies; 3+ messages in thread
From: Paul Argentoff @ 2004-09-21 13:39 UTC (permalink / raw)
  To: Gerd Stolpmann; +Cc: argentoff, ocaml

Dear Gerd Stolpmann,

Let GS = "Gerd Stolpmann" in
  written_by GS => 

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

Thanx, I'm now experimenting on it ;)

-- 
Yours truly, WBR, Paul Argentoff.
Jabber:	paul@jabber.rtelekom.ru
RIPE:	PA1291-RIPE

-------------------
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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-09-21 13:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-21  8:03 [Caml-list] huuuuuge executable with pxp Paul Argentoff
2004-09-21  8:23 ` Gerd Stolpmann
2004-09-21 13:39   ` Paul Argentoff

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).