p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   General .NET (http://p2p.wrox.com/forumdisplay.php?f=122)
-   -   Debug v.s. Release in dotnet assembly (http://p2p.wrox.com/showthread.php?t=15408)

orencs July 14th, 2004 02:34 AM

Debug v.s. Release in dotnet assembly
 
Hello,

Does anyone can tell what are the main differences between Debug and Release version in DOTNET assembly?

TIA
Oren


Jeff Mason July 14th, 2004 12:58 PM

A debug build generates a file containing debug symbols (.pdb); a release build does not.

A debug build generates extra instructions to accomodate the debugger (e.g. NOP instructions to assist your setting breakpoints); a release build does not include these.

A release build uses full optimizations when compiling which might include rearranging your code or inlining it for efficiency, a debug build doesn't do this.

A debug build allocates extra memory on the heap for objects to facilitate detecting memory overwrite errors; a release build doesn't do this.

A release build will thus be smaller, faster, and more efficient than a debug build.

Jeff Mason
Custom Apps, Inc.
www.custom-apps.com


All times are GMT -4. The time now is 09:54 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.