Re: [xml] Size

On Fri, Mar 08, 2002 at 12:33:55PM +0100, Jean-Yves Lamoureux wrote:
I'm currently trying to get a very light XML library, but I can't make it 
smaller than 874596 bytes. 

  Hum, you have a problem with your compiler then or your architecture
is RISC or something:
paphio:~/XML -> ls -l /usr/lib/ 
-rwxr-xr-x    1 root     root       707226 Mar  2 19:16 /usr/lib/*
paphio:~/XML -> size /usr/lib/ 
   text    data     bss     dec     hex filename
    614275        33896    3456  651627   9f16b /usr/lib/

650KB and this is compiled as shared library with -fPic which steals one
register from the available set inflating the code size and with all options

paphio:~/XML -> ./configure --help
--with-zlib[=DIR]       use libz in DIR
--with-python[=DIR]    Build Python bindings if found
--with-buffers          Use buffers for node content
--with-readline=DIR     use readline in DIR
--with-threads          Add multithread support(off)
--with-thread-alloc     Add per-thread memory(off)
--with-history          Add history support to xmllint shell(off)
--with-ftp              Add the FTP support (on)
--with-http             Add the HTTP support (on)
--with-html             Add the HTML support (on)
--with-catalog          Add the Catalog support (on)
--with-docbook          Add Docbook SGML support (on)
--with-xpath            Add the XPATH support (on)
--with-xptr             Add the XPointer support (on)
--with-c14n             Add the Canonicalization support (on)
--with-xinclude         Add the XInclude support (on)
--with-iconv[=DIR]      Add ICONV support (on)
--with-debug            Add the debugging module (on)
--with-mem-debug        Add the memory debugging module (off)

  A lot of things are configured in by default configure them off
recompile and see,


Daniel Veillard      | Red Hat Network
veillard redhat com  | libxml Gnome XML XSLT toolkit | Rpmfind RPM search engine

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]