Is there any way, through a compiler option or within the debugger, to initialize program variables in order to detect usage of uninitialized variables.
Some compilers have an option to set all variables to NaN or some such value. That way, when variables are used without having been initialized, the program terminates.
The flag “-Msave”, which applies the SAVE attribute to all local variables, has a side effect of initializing variables to zero. Though, the best method I’ve found to detect UMRs is to use Valgrind (http://www.valgrind.org).
I picked up on your favorable comment about Valgrind and have downloaded it. Do you have any suppression files that you have added for when you use it? If so, would you mind sharing them with me?