BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Debug vs. Release Build

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (IDE)
View previous topic :: View next topic  
Author Message
Bruce Salzman
Guest





PostPosted: Mon Mar 07, 2005 4:58 pm    Post subject: Debug vs. Release Build Reply with quote



Is there any real advantage to switching to a Release build before
shipping one's software?

Regards,
Bruce


Back to top
JJ
Guest





PostPosted: Mon Mar 07, 2005 11:07 pm    Post subject: Re: Debug vs. Release Build Reply with quote



Size, speed are some of the advantages.

Jeff www.ruamkwamkid.com


" Bruce Salzman" <bruce (AT) nospam (DOT) org> wrote

Quote:
Is there any real advantage to switching to a Release build before
shipping one's software?

Regards,
Bruce





Back to top
Bruce Salzman
Guest





PostPosted: Mon Mar 07, 2005 11:40 pm    Post subject: Re: Debug vs. Release Build Reply with quote



Quote:
Size, speed are some of the advantages.


I'm not convinced that those are real benefits. Out of line inlines
(debug) produce smaller, less buggy(if you use the STL) code. As for
speed, Borland' optimizer kinda sucks anyway.

Regards,
Bruce



Back to top
masi
Guest





PostPosted: Tue Mar 08, 2005 12:10 am    Post subject: Re: Debug vs. Release Build Reply with quote

you mean you would leave debug info into your executables?

Regards
masi urbano

" Bruce Salzman" <bruce (AT) nospam (DOT) org> ha scritto nel messaggio
news:422c8843$1 (AT) newsgroups (DOT) borland.com...
Quote:
Is there any real advantage to switching to a Release build before
shipping one's software?

Regards,
Bruce





Back to top
Bruce Salzman
Guest





PostPosted: Tue Mar 08, 2005 12:18 am    Post subject: Re: Debug vs. Release Build Reply with quote


"masi" <masiurb (AT) tin (DOT) it> wrote

Quote:
you mean you would leave debug info into your executables?


The debug symbols are already removed by the linker and stored in a
TDS file. I guess I could undefine _DEBUG to get rid of the ASSERTS
and so forth.

Regards,
Bruce



Back to top
Arnie
Guest





PostPosted: Tue Mar 08, 2005 7:33 pm    Post subject: Re: Debug vs. Release Build Reply with quote

" Bruce Salzman" <bruce (AT) nospam (DOT) org> wrote

Quote:
Is there any real advantage to switching to a Release build before
shipping one's software?

Regards,
Bruce

I think the definitive answer is 'maybe'. As you've said, the debug symbol
info is in the TDS file. You can disable inline expansions in release mode
if you like.

I've done some performance testing on BCB5 and VC++ 8 (VS 2005 beta) in both
debug and release mode. My app is likely not similar to yours, so you
mileage may vary. In any case, I found BCB release mode to perform
somewhat, though not terribly, faster than debug mode. The VC++ compiled
app was probably at LEAST 4-5 times faster in release mode. VC does a lot
more work in debug mode, including setting patterns into allocated buffers.
This takes time. It's probably more like a BCB app running with Code Guard.

For reference, the app was DB orientated and did a lot of I/O. But, then,
using ADO/OLEDB it was probably doing a lot of memory [de]allocation also.
I haven't tried a more CPU-intensive app.

I wouldn't lose sleep over it. You can have some confidence that if it runs
for you in debug mode, it'll probably run the same in the field. But if you
build and test in debug and then build and ship in release, who knows.
We've certainly had a few problems there.

- Arnie



Back to top
Bruce Salzman
Guest





PostPosted: Tue Mar 08, 2005 8:06 pm    Post subject: Re: Debug vs. Release Build Reply with quote

Quote:
I wouldn't lose sleep over it. You can have some confidence that if
it runs for you in debug mode, it'll probably run the same in the
field. But if you build and test in debug and then build and ship
in release, who knows. We've certainly had a few problems there.


That's mainly what I was worried about, a bunch of release mode bugs
that I haven't seen before. Plus it's such a PITA to rebuild in debug
mode to track down a bug report, that I will probably stick with the
debug mode.

Regards,
Bruce



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (IDE) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.