Re: [xml] Size



On Fri, Mar 08, 2002 at 12:33:55PM +0100, Jean-Yves Lamoureux wrote:
Hi
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/libxml2.so.2.4.16 
-rwxr-xr-x    1 root     root       707226 Mar  2 19:16 /usr/lib/libxml2.so.2.4.16*
paphio:~/XML -> size /usr/lib/libxml2.so.2.4.16 
   text    data     bss     dec     hex filename
    614275        33896    3456  651627   9f16b /usr/lib/libxml2.so.2.4.16

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

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

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard redhat com  | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



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