what is assembler什么是汇编器
2012-12-19 18:52
423 查看
网址:http://searchdatacenter.techtarget.com/definition/assembler
An assembler is a
program that takes basic computer
instructions and converts them into a pattern of
bits that the computer's
processor can use to perform its basic operations. Some people call these instructions assembler language and others use the term
assembly language.
Here's how it works:
Most computers come with a specified set of very basic instructions that correspond to the basic machine operations that the computer can perform. For example, a "Load" instruction causes the processor to move a string of bits from a location in the processor's
memory to a special holding place called a
register. Assuming the processor has at least eight registers, each numbered, the following instruction would move the value (string of bits of a certain length) at memory location 3000 into the
holding place called register 8:
The programmer can write a program using a sequence of these assembler instructions.
This sequence of assembler instructions, known as the
source code or source program, is then specified to the assembler program when that program is started.
The assembler program takes each program statement in the source program and generates a corresponding bit stream or pattern (a series of 0's and 1's of a given length).
The output of the assembler program is called the
object code or object program relative to the input source program. The sequence of 0's and 1's that constitute the object program is sometimes called
machine code.
The object program can then be run (or executed) whenever desired.
In the earliest computers, programmers actually wrote programs in machine code, but assembler languages or instruction sets were soon developed to speed up programming. Today, assembler programming is used only where very efficient control over processor
operations is needed. It requires knowledge of a particular computer's instruction set, however. Historically, most programs have been written in "higher-level" languages such as COBOL, FORTRAN, PL/I, and C. These languages are easier to learn and faster to
write programs with than assembler language. The program that processes the source code written in these languages is called a
compiler. Like the assembler, a compiler takes higher-level language statements and reduces them to machine code.
A newer idea in program preparation and portability is the concept of a
virtual machine. For example, using the
Java programming language, language statements are compiled into a generic form of machine language known as
bytecode that can be run by a virtual machine, a kind of theoretical machine that approximates most computer operations. The bytecode can then be sent to any computer platform that
has previously downloaded or built in the Java virtual machine. The virtual machine is aware of the specific instruction lengths and other particularities of the platform and ensures that the Java bytecode can run.
An assembler is a
program that takes basic computer
instructions and converts them into a pattern of
bits that the computer's
processor can use to perform its basic operations. Some people call these instructions assembler language and others use the term
assembly language.
Here's how it works:
Most computers come with a specified set of very basic instructions that correspond to the basic machine operations that the computer can perform. For example, a "Load" instruction causes the processor to move a string of bits from a location in the processor's
memory to a special holding place called a
register. Assuming the processor has at least eight registers, each numbered, the following instruction would move the value (string of bits of a certain length) at memory location 3000 into the
holding place called register 8:
L 8,3000
The programmer can write a program using a sequence of these assembler instructions.
This sequence of assembler instructions, known as the
source code or source program, is then specified to the assembler program when that program is started.
The assembler program takes each program statement in the source program and generates a corresponding bit stream or pattern (a series of 0's and 1's of a given length).
The output of the assembler program is called the
object code or object program relative to the input source program. The sequence of 0's and 1's that constitute the object program is sometimes called
machine code.
The object program can then be run (or executed) whenever desired.
In the earliest computers, programmers actually wrote programs in machine code, but assembler languages or instruction sets were soon developed to speed up programming. Today, assembler programming is used only where very efficient control over processor
operations is needed. It requires knowledge of a particular computer's instruction set, however. Historically, most programs have been written in "higher-level" languages such as COBOL, FORTRAN, PL/I, and C. These languages are easier to learn and faster to
write programs with than assembler language. The program that processes the source code written in these languages is called a
compiler. Like the assembler, a compiler takes higher-level language statements and reduces them to machine code.
A newer idea in program preparation and portability is the concept of a
virtual machine. For example, using the
Java programming language, language statements are compiled into a generic form of machine language known as
bytecode that can be run by a virtual machine, a kind of theoretical machine that approximates most computer operations. The bytecode can then be sent to any computer platform that
has previously downloaded or built in the Java virtual machine. The virtual machine is aware of the specific instruction lengths and other particularities of the platform and ensures that the Java bytecode can run.
相关文章推荐
- What is a plugin fragment? (插件片段是什么?)
- What is loopback file device 什么是回送设备
- 什么是极坐标? —— 一点微小的想法 What is Polar Coordinate ? - Some Naive Thoughts about It
- What is the Polymorphism?(什么是多态)
- EXTjs作用域是什么(What is that Scope all about ) (转)
- 什么是 AJAX, what is AJAX(一)
- [转贴]What is Anti-Pattern 什么是反模式
- 什么是KVC?(What Is Key-Value Coding?)
- What is a pure virtual function?--什么是纯虚函数
- 什么是游戏开发的实体系统框架 What is an entity system framework for game development
- 什么是游戏开发的实体系统框架 What is an entity system framework for game development
- 什么是六顶思考帽子? / What is Six Think Hat in Strategic Analysis?
- 软件随想录(local.joelonsoftware.com/wiki)-2001年05月05日 这个国家的狗做什么工作? - What Is the Work of Dogs in this Cou
- 什么是解析树?What is a Parse Tree?
- EXTjs作用域是什么(What is that Scope all about )
- 什么是证券(What is a security)
- What is a nuclear reactor?(核反应堆是什么)
- 什么是内存泄漏?(What is a memory leak?)
- what is the Structural mechanics(什么是结构力学?)
- 什么是MAC地址及作用管理教程——What is the MAC address and role management tutorial