机器代码和目标代码之间的区别

发布于 2024-08-18 20:13:19 字数 83 浏览 5 评论 0原文

我正在 A Level 考试中,正在为计算机考试做一些复习。 我想知道是否有人可以告诉我机器代码和目标代码之间有什么区别。

请保持简单。

I'm in the middle of my a levels and im doing some revision for my Computing exam.
I was wondering if someone could tell me what the difference is between machine code and object code.

keep it it simple please.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

凡尘雨 2024-08-25 20:13:19

目标代码是编译器的输出。它包含与源代码类似的指令和标记,但采用紧凑且优化的(通常是可执行的)格式。它还可以包含其他内容,例如调试器符号。通常,目标代码随后由链接器处理,链接器将来自每个编译单元的目标代码连接在一起以形成可执行文件(或库,例如 dll)。可执行文件或库包含机器代码,可以直接由处理器执行,并且特定于机器体系结构和操作集。

Object code is the output of the compiler. It contains instructions and tokens like your source code, but in a compact and optimized (often executable) format. It can also contain other things like debugger symbols. Usually, object code is then processed by the linker, which connects the object code from each compilation unit together to form an executable (or library, such as a dll). The executable or library contains machine code, which can be executed directly by the processor and is specific to the machine architecture and operation set.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文