Computer Science - Computer Fundamentals - Discussion

Discussion Forum : Computer Fundamentals - Section 1 (Q.No. 11)
11.
A computer program that converts assembly language to machine language is
Compiler
Interpreter
Assembler
Comparator
None of the above
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
40 comments Page 1 of 4.

Rakesh said:   1 decade ago
Steps
1)source file(ex:-test.c)
|(preprocessor inserts all # files)
|
v
2)preprocessed file (test.i)
|(compiler converts source code to assembly code
| ie MOV,JMP,XOR etc and converts .i file to .s file)
|
v
3)relocatable binary
|(in other word called as object file
| it converts .s file to .o file format)
|
v
4)linking is done
|(done by the linker its function includes
|1.instruction relocation :-mapping all the instruction
|to relocatable absolute address
|2.procedure relocation :-every fn. in source refers to
|specific address procedure list.
|3.provides platform specific runtime code into executable
|file)
v
.exe file is obtained.
So the correct answer is assembler.

Sangeeta said:   1 decade ago
It is C, assembler as it converts assembly language into machine language. It cannot be compiler or interpreter as both convert high language into machine language, with the difference that compiler translates the whole programme and then execute it while interpreter translates line by line and execute it line after line. As for a comparator it is a device that compary binary digits, so definitely the answer is C.

Samuel said:   9 years ago
Compiler- a special program that takes written source code and turns to machine language at a go.

Assembler - specific to translating programs written in assembler language to machine language.

Interpreters- interpreter processes the program as its being executed.
(4)

Sanjay said:   1 decade ago
Please don't confuse among these terms.

Compiler converts high level language into intermediate or assembly language.

And interpreter converts intermediate language (not assembly language) into low level language or machine level language.

Anupama said:   7 years ago
Compiler converts high level langauge to machine level langauge whereas assembler converts assembly level langauge to machine level and interpreter which converts high level langauge to machine level line by line.
(4)

Lukman Ibrahim said:   1 decade ago
Assembler is the correct option because it take the source language code as an input and generates its corresponding machine code. So assembler is the most correct answer.

Sundar said:   1 decade ago
@Nilesh

No buddy. The given answer is correct.

Compiler: Converts High-Level language into Machine-Code. (Ex: C, C++)
Assembler: Assembly code to Machine-Code.(Ex: ASM)

Linuxb said:   1 decade ago
An assembler creates object code by translating assembly instruction mnemonics into opcodes, and by resolving symbolic names for memory locations and other entities

Roushan said:   1 decade ago
Assembler is the program which takes assembly language code as an input and at output generates its corresponding machine code. So assembler is the correct answer.

SAKET said:   1 decade ago
Assembler processes various op-code and operands from various tables through various passes. Assembler are of 1 pass, 2 pass, etc. So its assembler nilesh.


Post your comments here:

Your comments will be displayed after verification.