之间的区别:操作码,字节码,助记符,机器码和汇编 [英] Difference between: Opcode, byte code, mnemonics, machine code and assembly

查看:462
本文介绍了之间的区别:操作码,字节码,助记符,机器码和汇编的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对此很陌生.我试图以清晰的方式理解上述术语之间的区别,但是我仍然感到困惑.这是我发现的:

I am quite new to this. I tried to understand the difference between the mentioned terms in a clear fashion, however, I am still confused. Here is what I have found:

  • 在计算机汇编程序(或汇编)语言中,助记符是操作的缩写.将其输入到每个汇编程序指令的操作代码字段中.例如,AND AC,37表示AND37AC寄存器.因此ANDSUBMUL是助记符.它们由汇编器翻译.

  • In computer assembler (or assembly) language, a mnemonic is an abbreviation for an operation. It's entered in the operation code field of each assembler program instruction. for example AND AC,37 which means AND the AC register with 37. so AND, SUB and MUL are mnemonic. They are get translated by the assembler.

汇编语言中的指令(语句)通常非常简单,这与高级编程语言中的指令(语句)不同.通常,助记符是单个可执行机器语言指令(操作码)的符号名称,并且为每个机器语言指令定义至少一个操作码助记符.每条指令通常由一个操作或操作码以及零个或多个操作数组成.

Instructions (statements) in assembly language are generally very simple, unlike those in high-level programming languages. Generally, a mnemonic is a symbolic name for a single executable machine language instruction (an opcode), and there is at least one opcode mnemonic defined for each machine language instruction. Each instruction typically consists of an operation or opcode, plus zero or more operands.

推荐答案

OPCODE :这是您的计算机(虚拟机或硅机)解释的数字,代表要执行的操作

OPCODE: It is a number interpreted by your machine(virtual or silicon) that represents the operation to perform

BYTECODE :与机器代码相同,除了它主要由基于软件的解释器(例如Java或CLR)使用

BYTECODE: Same as machine code, except, its mostly used by a software based interpreter(like Java or CLR)

MNEMONIC :英语单词MNEMONIC的意思是诸如字母,构想或联想之类的有助于记忆的设备."因此,汇编语言程序员通常使用它来记住机器可以执行的操作",例如"ADD","MUL"和"MOV"等.这是特定于汇编程序的.

MNEMONIC: English word MNEMONIC means "A device such as a pattern of letters, ideas, or associations that assists in remembering something.". So, its usually used by assembly language programmers to remember the "OPERATIONS" a machine can do, like "ADD" and "MUL" and "MOV" etc. This is assembler specific.

机器代码:这是数字序列,用于打开和关闭计算机中的开关以执行某些工作,例如数字的加法,分支,乘法等.这纯粹是特定于机器的,并且由处理器的实现者充分记录.

MACHINE CODE: It is the sequence of numbers that flip the switches in the computer on and off to perform a certain job of work - such as addition of numbers, branching, multiplication, etc etc. This is purely machine specific and well documented by the implementers of the processor.

汇编程序:有两个汇编程序"-一个汇编程序是一系列助记符和操作数,它们被馈送到汇编器",该汇编程序将助记符和操作数汇编"为可执行的机器代码.可选地,链接器"链接程序集并生成可执行文件.

Assembly: There are two "assemblies" - one assembly program is a sequence of mnemonics and operands that are fed to an "assembler" which "assembles" the mnemonics and operands into executable machine code. Optionally a "linker" links the assemblies and produces an executable file.

基于"CLR"的语言(.NET语言)中的第二个程序集"是一系列注入了元数据信息的CLR代码,是可执行代码库的一种,但不能直接执行.

the second "assembly" in "CLR" based languages(.NET languages) is a sequence of CLR code infused with metadata information, sort of a library of executable code, but not directly executable.

这篇关于之间的区别:操作码,字节码,助记符,机器码和汇编的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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