DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   C++ (http://www.daniweb.com/forums/forum8.html)
-   -   does debug symbols in code slowdown program (http://www.daniweb.com/forums/thread167423.html)

monkey_king Jan 10th, 2009 12:25 am
does debug symbols in code slowdown program
 
Hi,
I was just wondering if adding debug symbols to my program,
will slow down it's performance.

I'm running linux.

thanks in advance

Ancient Dragon Jan 10th, 2009 12:44 am
Re: does debug symbols in code slowdown program
 
Yes because the compiler can't optimize the code. It also makes the program at least twice the size it needs to be.

monkey_king Jan 10th, 2009 1:42 am
Re: does debug symbols in code slowdown program
 
Thanks makes sense,
And I guess it's the same with the profiling?

daviddoria Jan 11th, 2009 9:30 pm
Re: does debug symbols in code slowdown program
 
Debug symbols are needed if you are trying to debug though! If by profiling you mean something like cachegrind, that will be VERY slow... (maybe 50x slower?), but you get an unbelievable view of any bottlenecks in your code.

Dave


All times are GMT -4. The time now is 3:57 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC