开发者

Why does adding a comment change compiled code (object) and executable in C++

I've started to add some doxygen comments to my code but I see that some comments change object code and also the linked executable in Visual C++.

I used objdump to catch the differences. I expect date and checksum differences but no more. However, adding a comment line to a doxygen style comment on a method changes object code and the executable.

Do you have any idea wha开发者_StackOverflowt can be the cause of this weird behaviour or is there another method that I can verify no changes in executable after adding those comments?

Cheers, Burak


If you are compiling with debugging symbols, then the comments will cause the line references to move around.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜