COMPUTER SCIENCE AND ENGINEERING
COMPILER DESIGN
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
machine code
|
|
object code
|
|
assembly code
|
|
none of the above
|
Detailed explanation-1: -The compiler takes the preprocessed file and uses it to generate corresponding assembly code. Assembly code, or assembly language (often abbreviated asm), is a high-level programming language that corresponds programming code with the given architecture’s machine code instructions.
Detailed explanation-2: -Assembler. Function: Its main function is to convert high level programming code into machine language code. Function: The main function of an assembler is that converts assembly level code into machine level code. The whole code is converted into machine language at the same time.
Detailed explanation-3: -GCC is an integrated collection of compilers for several major programming languages, which as of this writing are C, C++, Objective-C, Java, FORTRAN, and Ada. The GNU compilers all generate machine code, not higher-level language code, translated via another compiler.
Detailed explanation-4: -The input code of the compiler and assembler is called the source code.