From: drew@cs.colorado.edu (Drew Eckhardt) Subject: Re: Mass memory usage Date: Sun, 4 Jul 1993 08:28:58 GMT
In article <211tgp$hn4@overload.lbl.gov> kac@ux5.lbl.gov (Kevin Campbell) writes:
>
>Hi,
> I know this has been discussed before, and recently, but at the time, I
>didn't realize I had the same problem, so I didn't pay a whole lot of
>attention. Anyway, I can't understand why programs in Linux take up so much
>space! Even hello world (using puts) takes about 16K. I can strip it down
>to about 9K, but that still seems a little excessive.
This is an OMAGIC executable, which has a 1K header, followed by
one or more text pages, followed by one or more data pages. NMAGIC
executables don't have these alignment constraints, and will be
much smaller for tiny programs -
ratsnest% ./a.out
Hello world!
ratsnest% ls -l !$
ls -l ./a.out
-rwx------ 1 drew bin 1776 Jul 4 01:03 ./a.out*
I think that in general, you'll find Linux executables take much less
space than the executables for other operating systems because of the
shared libraries...
-- Boycott USL/Novell for their absurd anti-BSDI lawsuit. | Condemn Colorado for Amendment Two. | Drew Eckhardt Use Linux, the fast, flexible, and free 386 unix | drew@cs.Colorado.EDU Will administer Unix for food |