读取反汇编代码 [英] Reading disassembled code

查看:124
本文介绍了读取反汇编代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用masm32编写了简单的Hello单词程序。但是,当我尝试使用IDA对其进行分解时,我得到的输出会更大(我不会在此处写它,因为它会占用很多空间)。我不明白为什么会有所不同。

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?

推荐答案

这是正常现象。编译是一个耗时的过程,这意味着如果先编译代码然后反编译代码,就不能保证获得与最初放入的代码完全相同的东西。同一件事也适用于汇编语言。汇编和链接代码时,这是一个单向过程。

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.

这篇关于读取反汇编代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆