A compiler option that helps debug optimized code
Enhancements for IBM XL C/C++ and XL Fortran
From the developerWorks archives
Date archived: December 20, 2016 | First published: July 10, 2012
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.
This content is no longer being updated or maintained. The full article is provided "as is" in a PDF file. Given the rapid evolution of technology, some steps and illustrations may have changed.