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
Discussion:
40 comments Page 4 of 4.
Venkatesh said:
1 decade ago
Compiler converts source code into assembly code.
Assembler converts assembly code into object code.
Assembler converts assembly code into object code.
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
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.
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.
Ashwini said:
1 decade ago
It's assembler because assembler is a program that converts the source program written by user into object program or machine program.
Shivalik said:
1 decade ago
What does comparator and interpreter stands for?
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.
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.
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.
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)
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)
Nilesh said:
1 decade ago
Its the compiler. Plzz check it.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers