From: | Magnus Hammerin <magnush@***.LIU.SE> |
---|---|
Subject: | Strip, languages, and reality. |
Date: | Thu, 22 Jul 1993 10:21:58 +0200 |
think I shall point out another thing that hasn't been discussed.
Ok, lets say I have written a program (which I actually has :-). It is
written in C on a sun. I compile it with -O4, ie very optimized. Its
compiled size is about 180k, if I strip it I get it down to about
163k, that is a reduction in size of about 10%, so strip removes more
than just symbol tables used for debugging, it removes relocation bits
and stuff like that also.
Then I start the program. WOW it has allocated 1.7M of memory. Then I
use the program a little, read some images, display them, calculate a
little... OHHH NOOOO it has allocated 7.2M of memory!!!
So, what has happend? Well, to start with, the program is dynamically
linked, so it wont actually load any libraries until it is run.
Secondly I use dynamic allocation of memory. And IMHO that is how it
will be done 60 years from now. So this thing about program sizes in
ShadowRun is a simplification of how it will work in the future.
What I am trying to say is, we can't look at how it is today, ie
compare with reality, when we decide if there should be a strip
program or not.
-Magnus.
--
-------------------------------------------------------------------------------
email: magnush@***.liu.se ! Dept. of Electrical Engineering
snail: Magnus Hammerin ! University of Linkoping, Sweden
Elauto, ISY +----------------------------------------------
S-581 83 LINKOPING ! Why use desktop publishing programs when
Sweden ! there is POSTSCRIPT!?!