CB2007 Debug build the exe is smaller than the Release build.

Any reason why a Debug build using C++ Builder 2007 and TMS Unicode Components results in a smaller exe? Should not the *Release* build be the smaller file?
0
Jason
11/7/2008 2:45:29 AM
embarcadero.cppbuilder.ide 2180 articles. 1 followers. Follow

9 Replies
820 Views

Similar Articles

[PageSpeed] 1
Get it on Google Play
Get it on Apple App Store

<Jason Goff> wrote in message news:40114@forums.codegear.com...
> Any reason why a Debug build using C++ Builder 2007 and TMS Unicode Components 
> results in a smaller exe? Should not the *Release* build be the smaller file?

I think the major reason is that release version contains inlined and possibly 
non-inlined versions of the functions it decided to inline. Typically debug 
version is built with all functions outlined.

-- Gene Bushuyev (www.gbresearch.com)
0
Gene
11/7/2008 5:16:28 AM
Jason Goff wrote:
> Any reason why a Debug build using C++ Builder 2007 and TMS Unicode Components results in a smaller exe? Should not the *Release* build be the smaller file?

You are using dynamic linking in the debug build?
0
Alex
11/7/2008 5:43:45 PM
> {quote:title=Alex Bakaev wrote:}{quote}
> You are using dynamic linking in the debug build?

No. The only thing check for Debug is "Full debug information" and "Disable incremental link" for Release nothing is checked.
0
Jason
11/10/2008 10:19:08 PM
Jason Goff wrote:
>> {quote:title=Alex Bakaev wrote:}{quote}
>> You are using dynamic linking in the debug build?
> 
> No. The only thing check for Debug is "Full debug information" and "Disable incremental link" for Release nothing is checked.


What is the size difference?
0
Alex
11/10/2008 10:39:18 PM
> {quote:title=Alex Bakaev wrote:}{quote}
> What is the size difference?

Debug = 2.12 MB (2,231,808 bytes)

Release = 2.39 MB (2,514,432 bytes)
0
Jason
11/10/2008 11:29:35 PM
Jason Goff wrote:
>> {quote:title=Alex Bakaev wrote:}{quote}
>> What is the size difference?
> 
> Debug = 2.12 MB (2,231,808 bytes)
> 
> Release = 2.39 MB (2,514,432 bytes)

OK, that's a difference that can be explained by optimizations. Try 
'optimize for size' and see what happens.
0
Alex
11/11/2008 10:12:17 PM
> {quote:title=Alex Bakaev wrote:}{quote}
> Jason Goff wrote:
> OK, that's a difference that can be explained by optimizations. Try 
> 'optimize for size' and see what happens.

I am working this file in a project. Thus the new Debug build is:
Debug = 2,260,480 bytes

and with Size optimization it is:
Release = 2,773,504 bytes

I am just curious...
0
Jason
11/14/2008 6:00:34 PM
> {quote:title=Jason Goff wrote:}{quote}
> > {quote:title=Alex Bakaev wrote:}{quote}
> > Jason Goff wrote:
> > OK, that's a difference that can be explained by optimizations. Try 
> > 'optimize for size' and see what happens.
> 
> I am working this file in a project. Thus the new Debug build is:
> Debug = 2,260,480 bytes
> 
> and with Size optimization it is:
> Release = 2,773,504 bytes

I'd generate a map file from the linker and look at the differences.

Regards,
Lee
0
Lee
11/14/2008 6:11:35 PM
> {quote:title=Lee Cantey wrote:}{quote}
> I'd generate a map file from the linker and look at the differences.

The .map for Debug is:
 Start Length Name Class
 0001:00401000 0001B59DCH _TEXT                  CODE
 0002:005B7000 00001CDFCH _DATA                  DATA
 0003:005D3DFC 000009418H _BSS                   BSS
 0004:00000000 0000000FCH _TLS                   TLS

The .map for Release is:
 Start Length Name Class
 0001:00401000 000232CE0H _TEXT                  CODE
 0002:00634000 00001CE04H _DATA                  DATA
 0003:00650E04 000009418H _BSS                   BSS
 0004:00000000 0000000FCH _TLS                   TLS
0
Jason
11/14/2008 11:41:04 PM
Reply:

Similar Artilces:

thunderbird release build error: after building current "hg://releases/comm-release" mach swears that no "dist/bin/thunderbird.exe exist"
Hello guys, please help to explain this gorgeous error message. I'm building releases/comm-release, using 'mach' ofcourse. Right after the message "your build is finished successfully", it unexpectedly tells: "Error running mach.... consider filling bug... Exception: Binary expected "OBJ_DIR/dist/bin/thunderbird.exe" doesn't exist" Correct binaries are in fact placed under mozilla binaries "OBJ_DIR/mozilla/dist/bin/thunderbird.exe" The whole piece of log is below: -----------build.log------------- Single process terminated ...

SpiderMonkey works as Debug-build, not as Release-build
Hi, I have build SpiderMonkey 1.7 as a static library using VS2005 to make a macro plugin for Notepad++. What I did was: - Downloaded js-1.7.0.tar.gz - I added a new static library project to my project - Included the required files (used js.mak as reference for this) - Added jsautokw.h from a nmake build - Made some minor modifications to - jstypes.h: remove __declspec() - jsapi.c: remove DllMain() - prmjtime.c: added <windows.h> As a debug-build, everything works great. But as a release-build it crashes when JS_EvaluateScript() is called even with a scr...

VS Builds, and Builds, and Builds
Hello, Has anyone else had this problem?  After a while of developing, and I go to compile, VS takes forever to build and I have to end-task it.  It's definitely after I've been working for a while, then it finally has "had it" and just takes forever to build.  It's annoying as I know its not the machine (2.8 GHZ processor and 1GB RAM).  Has anyone else experienced this problem?  By the way, I do have SP1 installed. Also, after minimizing and switching around screens, when it does this, the building icon in the status bar doesn't show.  And, for more informati...

Debug Build vs Release Build in ASP.NET 2.0
When building an ASP.NET web app with VS2003 I was able to specify whether I wanted a debug build or a release build from either Build|Configuration Manager or using the drop down list on the toolbar. This is turn determined whether the DLL containing the code-behind classes contained debug info, or not.Now that I'm using ASP.NET 2.0 under VS2005 this option isn't obviously available for web projects so assuming that I wanted debug info compiled into the assemblies containing the code-behind classes, am I right to assume this option is now determined by the    <compilation ...

XE6 64bit: Release Build runs, but Debug Build does not. Problem with DLLs?
Hi I have a VCL-form-application project, which is building (compiling and linking) nicely in both, debug mode and release mode. However, the debug executable does immediately quit after pressing F9 (without any warning message), while the release executable brings up the main form as expected and is running perfectly. With the release build I had the same issue before I put two needed DLLs into the release folder. (Why did I get no warnings that the DLLs are missing?) I copied the DLLs into the Debug folder, too, but it does not help in this case. What is going on? Thank you for hel...

build flags for release builds
Hi, We would like to release a preview version of our extension (xforms) to run on FF3 beta 3. However, if we build our extension on a tree we pulled using the beta 3 tag (FIREFOX_3_0b3_RELEASE) and install the extension on the beta3 build that we downloaded from mozilla.org we get varying degrees of success. A windows build will work. A linux one will crash. I can't remember exactly what happened on mac...it didn't work so well, but I don't think it crashed. However, running the .xpi on the tree that we built runs just fine in all instances. So I'm gue...

.EXE image size Debug vs Release build
I have a console application/program. I have assumed that its (.EXE) image size should be smaller when built in "Release" configuration than when built in the "Debug" configuration. However, it turned out the debug image size is much smaller. Is this supposed to be the case? Is there any parameter setting which I have missed? TIA Hi Lawrence Lawrence Ong wrote: > I have a console application/program. I have assumed that its (.EXE) image > size should be smaller when built in "Release" configuration than when built > in the "Debug&quo...

superreview granted: [Bug 54828] Build should default to non-debug/optimized build. : [Attachment 146531] Build moz optimized & non-debug by default
Daniel (Leaf) Nunes <leaf@mozilla.org> has granted Chris Seawood <cls@seawood.org>'s request for superreview: Bug 54828: Build should default to non-debug/optimized build. http://bugzilla.mozilla.org/show_bug.cgi?id=54828 Attachment 146531: Build moz optimized & non-debug by default http://bugzilla.mozilla.org/attachment.cgi?id=146531&action=edit ------- Additional Comments from Daniel (Leaf) Nunes <leaf@mozilla.org> woot. so --disable-debug is a noop now. has this been announced as upcoming in the newsgroups? (obviously, i haven't been keeping up...

superreview requested: [Bug 54828] Build should default to non-debug/optimized build. : [Attachment 146531] Build moz optimized & non-debug by default
Chris Seawood <cls@seawood.org> has asked Daniel (Leaf) Nunes <leaf@mozilla.org> for superreview: Bug 54828: Build should default to non-debug/optimized build. http://bugzilla.mozilla.org/show_bug.cgi?id=54828 Attachment 146531: Build moz optimized & non-debug by default http://bugzilla.mozilla.org/attachment.cgi?id=146531&action=edit ...

Build error while trying to build debug desktop build on MacOs10.9.5
While trying to build Firefox desktop debug on MacOs10.9.5, I get this build error: 13:28.99 host_arm_ex_to_module.o 13:29.60 host_dwarf_cfi_to_module.o 13:29.70 /Users/mwargers/mozilla-central/security/pkix/test/gtest/pkixnames_tests.cpp:1077:22: error: unused variable 'ipv4_other_addr_str' [-Werror,-Wunused-const-variable] 13:29.70 static const uint8_t ipv4_other_addr_str[] = "5.6.7.8"; 13:29.70 ^ 13:29.70 /Users/mwargers/mozilla-central/security/pkix/test/gtest/pkixnames_tests.cpp:1153:22: error: unused variable 'ipv4_constraint_truncat...

superreview requested: [Bug 299404] Can't build dmg of Firefox debug build on Mac : [Attachment 187976] Put DeerPark debug builds in DeerParkDebug.app
Mark Mentovai <mark@moxienet.com> has asked Simon Fraser <sfraser_bugs@smfr.org> for superreview: Bug 299404: Can't build dmg of Firefox debug build on Mac https://bugzilla.mozilla.org/show_bug.cgi?id=299404 Attachment 187976: Put DeerPark debug builds in DeerParkDebug.app https://bugzilla.mozilla.org/attachment.cgi?id=187976&action=edit ...

superreview cancelled: [Bug 299404] Can't build dmg of Firefox debug build on Mac : [Attachment 187976] Put DeerPark debug builds in DeerParkDebug.app
Mark Mentovai <mark@moxienet.com> has cancelled Mark Mentovai <mark@moxienet.com>'s request for superreview: Bug 299404: Can't build dmg of Firefox debug build on Mac https://bugzilla.mozilla.org/show_bug.cgi?id=299404 Attachment 187976: Put DeerPark debug builds in DeerParkDebug.app https://bugzilla.mozilla.org/attachment.cgi?id=187976&action=edit ...

Disabling unified builds on mozilla-inbound debug builds Was: Thinking about the merge with unified build
On Mon, Dec 02, 2013 at 06:23:00PM -0500, Ehsan Akhgari wrote: > On 12/2/2013, 2:36 PM, Chris Peterson wrote: > >On 11/29/13, 7:39 PM, Mike Hommey wrote: > >>I think it's time, 9 days before the merge, to think about whether we > >>want unified builds to ride the train or not. I'm almost tempted to > >>suggest that we disable unified builds on nightlies, but that would > >>probably hide the problems even more. > > > >I don't think Mike's original question has been discussed in this > >thread: should we disa...

Building: only debug. Why not release?
I've installed the beta 2. I've opened an old project and built it. No problems here. Building succeded and the page works correctly. However i can only build in debug mode. Configuration manager doesn't allow me to set release mode. Is this a limit of this version?(Excuse my bad english)Thanx-Diego (Atos)--Diego (Atos)- Are you building a web site?  You can specify Debug either in web.config like this:    <system.web>       <compilation debug="false" />    </system.web> or in the @Page directive of ea...

Web resources about - CB2007 Debug build the exe is smaller than the Release build. - embarcadero.cppbuilder.ide

File:Ireland smaller.svg - Wikipedia, the free encyclopedia
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License , Version 1.2 or ...

Facebook Offers Now Available To Smaller, Local Businesses In Beta Test
Smaller and local businesses will finally gain access to Facebook Offers , as the social network announced the beta launch of the feature in ...

Facebook launches mobile discovery platform for smaller game developers
... is opening up its games ecosystem even further, the company announced Tuesday. Facebook launched a new discovery system so newer and smaller ...

1951 ... one makes you smaller! - Flickr - Photo Sharing!
1951 ... one makes you smaller! - Flickr - Photo Sharing!

Bully Tries To Intimidate Smaller Classmate. One Second Later, It All Changes. - YouTube
Watch Bully Tries To Intimidate Smaller Classmate. One Second Later, It All Changes. now. Also, surf around Break to find the funniest videos, ...

Smaller Surface tablet coming soon?
Microsoft developing a smaller 7-inch Surface tablet, according to The Wall Street Journal.

Convenience stores call on ACCC to keep watch as supermarkets plan smaller shops
A battle is looming between the major supermarkets and the corner store operators.

How Retail Online Trading Platforms Have Given Smaller Investors More Power
More than one-third of adults in Australia have skin in the share market, according to the ASX. But it was higher – 43% – before the Global Financial ...

Cloud for the smaller end of town
... are taking the lead in adoption over the larger enterprises. We’ve all heard that cloud technology has levelled the playing-field, giving smaller ...

ACT architects have big ideas for smaller adaptable housing
A scheme offering vertically organized flexible housing has taken first prize in a competition designed to encourage alternative housing options ...

Resources last updated: 12/9/2015 5:40:28 AM