开发者

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

开发者 https://www.devze.com 2023-01-31 20:22 出处:网络
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'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

精彩评论

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

关注公众号