Article View: borland.public.cppbuilder.nativeapi
Article #4663Re: Program is very large in memory. How to decrease ?
From: Bob Gonder
Date: Fri, 16 Dec 2005 18:32
Date: Fri, 16 Dec 2005 18:32
23 lines
1740 bytes
1740 bytes
MMX wrote: >I've wrote the service program using only WinAPI. Compiled .exe file is ~60 >kb on disk. But when it executing it tooks ~950 kb in memory even if do > >Why is it so big in memory and how to decrease it size. The default stack is 1 MB. You can change the size with a "module definition file" The .DEF file is added to the linker command. These are the values I use in a service program: EXETYPE WINDOWS CODE MOVEABLE DATA MULTIPLE HEAPSIZE 131072,131072 STACKSIZE 131072,131072 Also see the /H, /Hc, /S and /Sc linker switches. (I don't use these, just the def file)
Technical Details
Message-ID:
<9l16q1hgvnsul8u1o2tr33m4bo7q1948oo@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!meganewsservers.com!feeder2.on.meganewsservers.com!news-out.superfeed.net!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<43a27bfd@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,6af733692ddeff34 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Program is very large in memory. How to decrease ? Date: Fri, 16 Dec 2005 10:32:28 -0800 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <9l16q1hgvnsul8u1o2tr33m4bo7q1948oo@4ax.com> References: <43a27bfd@newsgroups.borland.com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 69.69.84.96 X-Trace: newsgroups.borland.com 1134757866 69.69.84.96 (16 Dec 2005 10:31:06 -0700) Lines: 26 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!meganewsservers.com!feeder2.on.meganewsservers.com!news-out.superfeed.net!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail