Tagged Questions

0
votes
2answers
155 views

Value optimized out in GDB: Can gdb handle decoding it automatically?

1) First I want to know, how to decode such variables ? I know the solutions to this problem, remove optimization flag, make it volatile, I dont want to do all that. Is there any solution which can ...
-1
votes
1answer
75 views

New returns null; calling object gains new member…Optimization bug? (MSVC, C++) [SOLVED]

I was hoping someone here could make sense of what I think could be a MSVC 2010 bug. I have this code (as part of a much larger project): namespace MyNamespace{ class Foo{ //snip ...
8
votes
3answers
122 views

Should I wrap calls to Debugger.Log() in #if (DEBUG)?

Is it necessary to wrap calls to Debugger.Log() in the #if (DEBUG) preprocessor directive for the purpose of code optimization, or will the C# compiler still produce optimized code when building the ...
1
vote
3answers
185 views

How to start debugging numerical code, when NaN's appear only when compiled with optimizations?

What are the general strategies to start debugging numerical code, when: code compiled with aggressive optimization flags, produces occational NaN's and Inf's in the output code compiled with -g ...
0
votes
1answer
47 views

How to generate different levels of optimization in the same source module?

I am using GCC to build my embedded C application, that I debug with GDB. The app consists on a program running on a host processor and multiple programs running on multiple accelerator DSP cores. My ...
0
votes
1answer
532 views

Quick question regarding ifort compiler debug flags

I have found the list of ifort debug flags. However, I am confused about some explanation of debug flags. As it stated, -debug can be configured as all, full, minimal and none. May I ask what's ...
2
votes
3answers
211 views

VB 2010 Express: Debug.WriteLine optimized away completely in debug version?

Simple question that does not seem to be covered: If I use a lot of Debug.WriteLine statements in my code, will they be completely absent in my production version? I mean: Is the compiler smart ...