Debug optimized code

Stephan Ceram <linuxkaffee_@_gmx.net>
16 Sep 2008 21:37:34 GMT

          From comp.compilers

Related articles
Debug optimized code linuxkaffee_@_gmx.net (Stephan Ceram) (2008-09-16)
Re: Debug optimized code rajaram.officemails@gmail.com (RR) (2008-09-17)
Re: Debug optimized code cr88192@hotmail.com (cr88192) (2008-09-17)
Re: Debug optimized code walter@bytecraft.com (Walter Banks) (2008-09-17)
Re: Debug optimized code rcmetzger@grandecom.net (rcmetzger) (2008-09-17)
Re: Debug optimised code jgd@cix.co.uk (2008-09-15)
Re: Debug optimized code sh006d3592@blueyonder.co.uk (Stephen Horne) (2008-09-18)
[20 later articles]
| List of all articles for this month |
From: Stephan Ceram <linuxkaffee_@_gmx.net>
Newsgroups: comp.compilers
Date: 16 Sep 2008 21:37:34 GMT
Organization: Compilers Central
Keywords: debug, question
Posted-Date: 17 Sep 2008 04:12:59 EDT

Hi,


I've a question about compilers' symbolic debugging information (like
DWARF2) and compiler optimizations. Should the code be always compiled
without any optimizations, i.e. -O0, to get accurate debug information
where all source code line number are correct or would I also get accurate
results for higher optimization levels? Usually, at least -O1 does
not modify the code too much, so I would assume that this optimization
level could be applied for a successful debugging afterwards.
What are you experiences?


Regards,
Stephan



Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.