answersLogoWhite

0

What is assembler and interpreter?

Updated: 8/10/2023
User Avatar

Wiki User

14y ago

Best Answer

There are two types of assemblers based on how many passes through the source are needed to produce the executable program.

  • One-pass assemblers go through the source code once. Any symbol used before it is defined will require "errata" at the end of the object code (or, at least, no earlier than the point where the symbol is defined) telling the linker or the loader to "go back" and overwrite a placeholder which had been left where the as yet undefined symbol was used.
  • Multi-pass assemblers create a table with all symbols and their values in the first passes, then use the table in later passes to generate code.
User Avatar

Wiki User

11y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

7y ago

The job of an assembler is to convert low-level assembly language source into a given architecture's native machine code. We can think of machine code as being the common language of all machines, however every architecture has its own specific version of that language as dictated by the architecture itself. In order to produce the correct machine code for a given architecture, we need to use an assembler that was written specifically for that architecture. Moreover, the assembly language source needs to be written specifically for the assembler.

The assembly language for a given architecture is usually developed alongside the hardware and is an integral part of the hardware design. However it is the assembler that actually implements the language. The hardware developer will typically produce a base-line assembler and a specification to which all other assembler implementations must adhere. The base-line assembler executes upon the target machine and, in some cases (particularly in older hardware), is built-in to the machine architecture itself. However, other vendors are free to use that specification to produce their own assemblers, some of which will be intended to execute upon other machines thus making it possible for one machine type to produce machine code for another machine type.

Although assembly languages have much in common with each other, it's the differences that matter. Common instruction synonyms such as JNZ may be mapped to different opcodes, memory may be addressed differently, the number of available registers and their length may differ, and so on. Any change to the architecture requires a new assembly language and a new assembler to implement it.

The same applies to higher-level languages. Each implementation of a high-level language caters for a specific architecture. So although languages such as Java are extremely portable, this is only made possible because each machine architecture has its own dedicated implementation of the Java virtual machine (JVM) which translates portable Java byte code (the JVM's native code) into the machine's native code.

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

An assembler is a one type of compiler which compiles the program written in assembly language.

This answer is:
User Avatar

User Avatar

Wiki User

14y ago

An assembler is a computer program for translating assembly language, basically a mnemonic representation of machine language into object code.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is assembler and interpreter?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Is C programming works without assembler compiler interpreter?

No, a C program cant work without an interpreter or compiler or assembler as the code written in the program is not understood directly by the computer so it needs any of the above translator program to make the program understandable to the computer.-Shruti Jain


Meaning of compiler cousin?

Sort of joke (or figurative speech) of your teacher, the meaning is: programs with similar/related functionality. They are: interpreter, assembler.


What are the risks of using compiler interpreter assembler?

The error messages may be frustrating as they show that your program is not perfect... Or I do not know what risk you mean...


What is the language processor?

Language processors are language translation software like assembler, interpreter and compiler


How high level computer language works without assembler compiler and interpreter?

I do not know, ask your teacher.Why, for example Python, PHP, Pearl and JavaScript work without compiler; C, Pascal, Cobol and Fortan work without interpreter.None work "without assembler compiler and interpreter" so the question cannot be answered as asked because there is no answer.If we want to write a program without an assembler, compiler or interpreter; it is an easy answer. You hand assemble, that is where you manually enter the machine code. In the early days this was the only way to program a computer. Having done some hand assembly I have to things to say about it.1) it is not as hard as it might appear to be but it is painfully slow to do.2) why bother when there are excellent compilers available.

Related questions

What is the difference between computer interpreter assembler?

wee2


Examples of computer language translators?

Assembler Interpreter Compiler


How many language processors are there?

there are three types of language processors namely interpreter,compiler and assembler


What is Language processor?

Language processors are language translation software like assembler, interpreter and compiler


how many languages are there?

there are three types of language processors namely interpreter,compiler and assembler


Is C programming works without assembler compiler interpreter?

No, a C program cant work without an interpreter or compiler or assembler as the code written in the program is not understood directly by the computer so it needs any of the above translator program to make the program understandable to the computer.-Shruti Jain


What are the cousins of a compiler?

First cousin twice removed is an interpreter, second cousin is an assembler. Its siblings are a text-editor, a linker and a debugger.


What are the risks of using compiler interpreter assembler?

The error messages may be frustrating as they show that your program is not perfect... Or I do not know what risk you mean...


Meaning of compiler cousin?

Sort of joke (or figurative speech) of your teacher, the meaning is: programs with similar/related functionality. They are: interpreter, assembler.


What are the examples of compiler?

basically compiler is that convert an object code in to machine code and machine code is directly understood by a computer. assembler and interpreter are the examples of compilers. assembler is used to convert object code of assmebly language in machine code.


How assembler works?

To the question, It is an low level language An assembly language is use to write programs : 1.Games 2.Operating system 3.Utility program 4.compiler/assembler/interpreter 5.Virus 6.Defragmenter 7.Device driver


How can text be converted into a language that computers understand?

Source code is translated into machine code by an interpreter, a compiler or an assembler, depending on the language that was used to write the source code.