Article View: borland.public.cppbuilder.nativeapi
Article #7955Re: Exe size and dynamic RTL
From: Ed Mulroy [TeamB]
Date: Thu, 09 Dec 2004 15:13
Date: Thu, 09 Dec 2004 15:13
45 lines
2603 bytes
2603 bytes
> ... Where do I find the necessary source files?... The files in the directories below the compiler's Source directory. On my machine that is C:\Program Files\Borland\CBuilder6\Source > ... Actually I use stl exceptions, but only a few. So > I could probably rewrite the code to not use any > exceptions. I have two classes which are instantiated > in automatic memory, not with 'new'... Then don't do it. The code for the exceptions you are using is most likely debugged and optimized beyond what you are likely to be able to do in a reasonable time. What you create has a high probability to be larger than what is already in there. . Ed > nicolasr wrote in message > news:41b850f4@newsgroups.borland.com... > > > Then make your own DLL which contains only those > > items. > > Can you give me a few hints on how to do this? Where > do I find the necessary source files? > > > > > One thing you have not mentioned. > > > > If this is pure Win32 API code and does not use > > new/delete or classes then you don't need Runtime > > Type ID (RTTI) or Exception Handling (EH). If so then > > add -RT- -x- to the compiler options and add noeh32.lib > > to the library list (if working form the command line, put > > it BEFORE the cw*.lib rtl library). This should make > > your executables even smaller. > > Actually I use stl exceptions, but only a few. So I could > probably rewrite the code to not use any exceptions. > However, I have two classes which are instantiated in > automatic memory, not with 'new'. Would your solution > still work in this case?
Technical Details
Message-ID:
<41b87528$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newshosting.com!nx02.iad01.newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<41b7acc1@newsgroups.borland.com> <41b7b156$3@newsgroups.borland.com> <41b850f4@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,bd0f78b0b8d3c0c1 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Ed Mulroy [TeamB]" <dont_email_me@bitbuc.ket> Newsgroups: borland.public.cppbuilder.nativeapi References: <41b7acc1@newsgroups.borland.com> <41b7b156$3@newsgroups.borland.com> <41b850f4@newsgroups.borland.com> Subject: Re: Exe size and dynamic RTL Date: Thu, 9 Dec 2004 10:13:38 -0500 Lines: 48 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 NNTP-Posting-Host: 24.74.175.102 Message-ID: <41b87528$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1102607656 24.74.175.102 (9 Dec 2004 07:54:16 -0800) X-Authenticated-User: edmulroy Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newshosting.com!nx02.iad01.newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail