MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

COMPILER DESIGN

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Source program is passed through ____, ____ and ____ to produce relocatable machine code
A
Compiler, Preprocessor and Loader
B
Preprocessor, Compiler and Assembler
C
Compiler, Assembler and Loader
D
Preprocessor, Compiler and Loader
Explanation: 

Detailed explanation-1: -Basically, “absolute” mode means that the code and RAM variables will be placed exactly where you tell the assembler it will be, while “relocatable” means the assembler builds code chunks and specifies RAM needs that can be placed wherever the linker finds room for them.

Detailed explanation-2: -Assembly code is converted into executable machine code by a utility program referred to as an assembler.

Detailed explanation-3: -Compilers analyze and convert source code written in languages such as Java, C++, C# or Swift. They’re commonly used to generate machine code or bytecode that can be executed by the target host system. Interpreters do not generate IR code or save generated machine code.

Detailed explanation-4: -The C compiler, compiles the program and translates it to assembly program (low-level language). An assembler then translates the assembly program into machine code (object). A linker tool is used to link all the parts of the program together for execution (executable machine code).

There is 1 question to complete.