A compiler option that helps debug optimized code

Enhancements for IBM XL C/C++ and XL Fortran

From the developerWorks archives

Daniel Chen and Tommy Hoffner

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.



static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=Rational
ArticleID=823988
ArticleTitle=A compiler option that helps debug optimized code
publish-date=07102012