Shared libraries (was Re: Window system bashing (was Re: X11 bashing))

Masataka Ohta mohta at necom830.cc.titech.ac.jp
Thu Apr 18 22:20:20 AEST 1991


In article <112 at titccy.cc.titech.ac.jp>
	mohta at necom830.cc.titech.ac.jp (Masataka Ohta) writes:

>You may claim shared libraries reduces the amount of required memory.
>But, even if you run all the command at the same time, total code
>space consumed is only 24884KB (including non-library code). On the
>other hand, if you run single X11 application, with shared library,
>mere /lib/X11.a consumes 3.3MB of virtual (and often real, as libraries
>tends to be scattered) memory.

Let me add one more fact.

On SONY NWS3860, the largest X application under /usr/bin/X11 is mwm.

If you run mwm, xdm and as many xterms as you want,

	text	data	bss	dec	hex
	1007616	192512	27168	1227296	12ba20	/usr/bin/X11/mwm
	413696	86016	27792	527504	80c90	/usr/bin/X11/xdm
	585728	139264	39376	764368	ba9d0	/usr/bin/X11/xterm

still, total text size is below 2MB.

So, shared library is NO solution even to reduce memory consumption of X11.

					Masataka Ohta



More information about the Comp.unix.wizards mailing list