机器代码和目标代码之间的区别
我正在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
目标代码是编译器的输出。它包含与源代码类似的指令和标记,但采用紧凑且优化的(通常是可执行的)格式。它还可以包含其他内容,例如调试器符号。通常,目标代码随后由链接器处理,链接器将来自每个编译单元的目标代码连接在一起以形成可执行文件(或库,例如 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.