Reading disassembled code

2019-07-19 01:10发布

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条回答
闹够了就滚
2楼-- · 2019-07-19 01:49

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.

查看更多
登录 后发表回答