From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,79b248c1cf206957 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-06-05 05:36:35 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.tele.dk!small.news.tele.dk!128.39.3.168!uninett.no!ntnu.no!not-for-mail From: Preben Randhol Newsgroups: comp.lang.ada Subject: Re: Why is memory footprint smaller when compiled static? Date: Wed, 5 Jun 2002 12:36:35 +0000 (UTC) Organization: Norwegian university of science and technology Message-ID: References: NNTP-Posting-Host: kiuk0152.chembio.ntnu.no X-Trace: tyfon.itea.ntnu.no 1023280595 4090 129.241.83.78 (5 Jun 2002 12:36:35 GMT) X-Complaints-To: usenet@itea.ntnu.no NNTP-Posting-Date: Wed, 5 Jun 2002 12:36:35 +0000 (UTC) User-Agent: slrn/0.9.7.4 (Linux) Xref: archiver1.google.com comp.lang.ada:25349 Date: 2002-06-05T12:36:35+00:00 List-Id: On Wed, 5 Jun 2002 13:37:36 +0200 (MET DST), Grein, Christoph wrote: > > This is a qustion that appears every now and then. In my eyes, it's rather > pointless to argue about Hello_World size. Real programs matter, and > there the differences are minor if programs are really comparable > (proper setting of options). > > The difference in size normally can be attributed to differences in > the IO parts of C and Ada: Ada does many more things than C, so IO is > not comparable, and IO is all that matters in Hello_World. What on earth are you talking about? Why are you comparing C to Ada. I haven't made any C code nor am I comparing C code. Neither is my program a mere Hello_World program (ref : http://www.pvv.org/~randhol/Ada95/Glosa/). I was only curious why the memory usage seems to drop 1 Mb after compiling the program as static rather than shared. I don't care so much how much memory my program takes, I just wanted to learn something about this. Preben Randhol