Reading disassembled code

故事扮演 提交于 2020-01-04 09:26:09

问题


I wrote simple Hello word program with masm32. But then when I try to disassemble it with IDA and I am getting much bigger output (I won't write it there because it would take to much space). And I don't get it why it's different. How to run the disasembled code?


回答1:


This is normal. Compilation is a "lossy" process, which means that if you compile code and then decompile it, you're not guaranteed to get exactly the same thing out that you originally put in. The same thing applies to assembly language. When you assemble and link the code, it's a one-way process.

This is why programmers save the original source code, rather than just trying to decompile their binaries when they want to fix bugs.



来源:https://stackoverflow.com/questions/10765126/reading-disassembled-code

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!