什么是组装code和字节code之间的区别? [英] What is the difference between assembly code and bytecode?

查看:184
本文介绍了什么是组装code和字节code之间的区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

而在搜索源$ C ​​$ C,字节code,汇编code,该机code,编译器,连接器,除preters,装配的含义各不同和所有的休息,我只拿到了在BYT code和汇编code之间的区别感到困惑。

While in the search for the various differences in the meanings of source code, bytecode, assembly code, machine code, compilers, linkers, interpreters, assemblers and all the rest, I only got confused on the difference between bytcode and assembly code.

特别推出这一维基百科的文章描述CIL我感到困惑,因为它似乎用两个词(装配code和字节code)交替让我觉得他们可能意味着完全一样的。

Particularly the introduction this wikipedia article to describe CIL confused me since it seems to use both terms (assembly code and bytecode) interchangeably making me think they might mean exactly the same.

推荐答案

大会code通常也意味着一台机器的本地语言的人类可读的形式(即所谓的机器语言)。在另一方面字节code是normaly,可以以字节为code间preTER PTED间$ P $的语言 - 所以它不是处理器的母语

Assembly code normally does mean the human readable form of a machine's native language (the so called machine language). Byte code on the other hand is normaly a language that can be interpreted by a byte code interpreter -- so it is not the processors native language.

为什么困惑呢?你不能比较汇编语言对字节code这个样子。当然,一个字节code也可以有一个装配code - 这意味着它的人类可读的形式,因为汇编语言并不一定意味着它是一个真正的机器 - 但它是人一些母语的可读形式 - 为处理器,这母语是机器code - 但你也可以有一个假的组装code(或PTED间$ p $)的机器像字节code。

Why the confusion then? You can't compare Assembly language versus Byte code this way. Of course a byte code can also have an assembly code -- meaning a human readable form of it, because "Assembly language" does not necessary mean that it is for a real machine -- but it is a human readable form of some native language -- for processors, this native language is the machine code -- but you also can have assembly code of a pseudo-(or interpreted) machine like Bytecode.

另请参阅:
汇编语言

另外的苦恼,当然 - 就像你可以在这里所有的讨论中看到的 - 因为IT人(我也)往往是在措辞宽松。 汇编语言谈到机器code时,经常被使用。这当然也不是完全正确的,因为汇编语言仅仅是一些机器code的人类可读的形式。

Further distress comes of course -- like you can see in all the discussion here -- because IT people (also myself) tend to be lax in wording. "Assembly language" is often used when speaking about machine code. This of course is not totally correct, because Assembly Language is only the human readable form of some machines code.

这篇关于什么是组装code和字节code之间的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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