C/C++ and Fortran

 View Only

A compiler option that helps debug optimized code

By Archive User posted Wed July 11, 2012 07:46 AM


Originally posted by: melaniejs

Debugging optimized code has always been a challenging task, because it could make the program state not available to debuggers. Optimization can change the sequence of operations, add or remove code, change variable data locations, and perform other transformations that make it difficult to associate the generated code with the original source statements. In this article, Daniel Chen and Tommy Hoffner introduce a compiler option that helps debug optimized code.  Read more

Interested in debugging optimized code using the latest XL compilers, look for these exercises in the Enterprise modernization sandbox for Power Systems under the section  Optimize server performance and programmer productivity with IBM compilers
Debugging optimized XL Fortran code
Debug optimized C code using the dbx debug program and the XL C compiler