debug symbols

For general rambling.
Post Reply
Jonathan
Grand Pooh-Bah
Posts: 6722
Joined: Tue Sep 19, 2006 8:45 pm
Location: Portland, OR
Contact:

debug symbols

Post by Jonathan »

Since none of you produce end-user software that I am aware of, do you leave debug symbols on in your production builds or not? What level of compiler optimizations do you use?

I suppose I am assuming you're producing compiled code. Are you?

Peijen
Minion to the Exalted Pooh-Bah
Posts: 2790
Joined: Fri Jul 18, 2003 2:28 pm
Location: Irvine, CA

Post by Peijen »

No debug symbols, compiler optimized code (single level for .net)

George
Veteran Doodler
Posts: 1267
Joined: Sun Jul 18, 2004 12:26 am
Location: Arlington, VA

Post by George »

Varies by project. Safety critical and time-critical systems generally disable optimizations and leave the debug symbols alone on the assumption that you did most of your testing that way and don't dare add uncertainty.

Another system was supposed to be released optimized, but that had to be removed when a bad optimization was detected that corrupted data. We tracked that one, but couldn't be sure if there were others, so it was safer to leave it off.

Something similar just happened with a Linux (gcc) optimized build corrupting data where Win32 (VC++) opt and debug and Linux debug worked fine. For that, we stuck a couple "volatile" keywords around to stop local optimizations, and called it a day.
I feel like I just beat a kitten to death... with a bag of puppies.

VLSmooth
Tenth Dan Procrastinator
Posts: 3055
Joined: Fri Jul 18, 2003 3:02 am
Location: Varies
Contact:

Post by VLSmooth »

From the C side of the house, optimization varies from none to -o2, very rarely more than that. We don't compile with debug symbols and #define out in-house debug functions.

Post Reply