Re: [xml] Size



On Fri, Mar 08, 2002 at 06:54:16AM -0500, Daniel Veillard wrote:
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:

  For the record, a bare configuration of libxml2 ends up in the 200KB ballpark

paphio:~/tmp/libxml2-2.4.17 -> ./configure --without-zlib --without-python --without-history --without-ftp 
--without-http --without-catalog --without-docbook --without-xpath --without-xptr  --without-xinclude  
--without-iconv --without-debug --without-c14n --disable-shared --without-html

make CFLAGS=-O2

paphio:~/tmp/libxml2-2.4.17 -> size xmllint
   text    data     bss     dec     hex filename
    224849         2216   50576  277641   43c89 xmllint
    ^^^^^^ that's libxml2 + the xmllint.c code !

paphio:~/tmp/libxml2-2.4.17 -> expr `size .libs/libxml2.a | grep -v filename | awk '{ print $4 " + " }'` 0
214572

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]