This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: shared object of CDL.
At Mon, 12 Aug 2002 16:20:52 +0200,
Andrew Lunn wrote:
>
> > I compared two flavors of ruby CDL plugins, one uses libcdl shared
> > library and another is libcdl static library.
> >
> > shared library:
> >
> > (%:~/work/ecos/libruby-cdl)- ls -l cdl.so
> > -rwxr-xr-x 1 taru taru 99088 2002-08-12 23:15 cdl.so*
> >
> > static version:
> > (%:~/work/ecos/libruby-cdl)- ls -l cdl.so
> > -rwxr-xr-x 1 taru taru 2284108 2002-08-12 23:16 cdl.so*
> >
> > The static version is 23 times larger than the shared version.
>
> Why is the question that springs to mind.
>
> Is there something going on with symbol tables? Has the shared library
> version been stripped where as the static version still has all the
> symbols?
No, I stripped both of them. The static version links all functions
defined in libcdl.a, while the shared versios has only tables of libcdl.
The size of non-stripped shared version was about 1M, while the static
version was about 4M. The static version was 3 times larger than the
shared version.
--
Debian Project http://debian.org/ - Masato Taruishi <taru@debian.org>
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss