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 06:43:57 PST Path: archiver1.google.com!news2.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sunqbc.risq.qc.ca!newsfeed.mathworks.com!cyclone.swbell.net!bos-service1.ext.raytheon.com!dfw-service2.ext.raytheon.com.POSTED!not-for-mail Message-ID: <3CFE152B.DB2702B2@raytheon.com> From: Mark Johnson X-Mailer: Mozilla 4.76 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Why is memory footprint smaller when compiled static? References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Wed, 05 Jun 2002 08:42:03 -0500 NNTP-Posting-Host: 192.27.48.39 X-Complaints-To: news@ext.ray.com X-Trace: dfw-service2.ext.raytheon.com 1023284588 192.27.48.39 (Wed, 05 Jun 2002 08:43:08 CDT) NNTP-Posting-Date: Wed, 05 Jun 2002 08:43:08 CDT Organization: Raytheon Company Xref: archiver1.google.com comp.lang.ada:25355 Date: 2002-06-05T08:42:03-05:00 List-Id: Preben Randhol wrote: > 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. > Did you review the link map as I suggested in a previous reply? news:3CFCE726.38B15035%40raytheon.com That should give you the information you need on what is included / excluded from the static and dynamically linked application. --Mark