[Xapian-discuss] xapian-bindings compile creates 34mb xapian_wrap.o file?

Olly Betts olly at survex.com
Mon Oct 18 21:07:52 BST 2004


On Mon, Oct 18, 2004 at 11:34:51AM -0700, Eric Parusel wrote:
>  g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/tcl8.3 -Wall 
> -Wno-unused -Wno-uninitialized -g -O2 -c xapian_wrap.cc 
> -Wp,-MD,.deps/xapian_wrap.TPlo  -fPIC -DPIC -o .libs/xapian_wrap.o
> 
> ********************
> Pauses here for a few minutes, first with a 100MB cc1plus process, then
> a 200MB an?  process?

The C++ source file SWIG generates is rather large and it takes GCC a
while to deal with it.  I don't think there's much we can do about
that (the SWIG and/or GCC developers might).

> # cd tcl8/.libs/
> # ls -la
> total 58216
> drwxr-xr-x    2 root     root         4096 Oct 18 11:25 .
> drwxrwxrwx    4 1019     1019         4096 Oct 18 11:25 ..
> lrwxrwxrwx    1 root     root           12 Oct 18 11:25 xapian.la -> 
> ../xapian.la
> -rw-r--r--    1 root     root          823 Oct 18 11:25 xapian.lai
> -rwxr-xr-x    1 root     root     24732269 Oct 18 11:25 xapian.so
> -rw-r--r--    1 root     root     34793736 Oct 18 11:25 xapian_wrap.o
> 
> ********************
> Is this out of the ordinary!?!

That'll have debug information in.  If you don't want that, installing
the files with "make install-strip" should remove it.  But it's not
actually a problem usually - the VM system loads pages from shared
libraries (and executables) on demand, so if the debug information
isn't used, it doesn't occupy RAM.

Incidentally, the .o file is just an intermediate file for building the
.so.

Cheers,
    Olly



More information about the Xapian-discuss mailing list