CODE GENERATION
ROLE OF CODE GENERATION
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
True
|
|
False
|
|
Either A or B
|
|
None of the above
|
Detailed explanation-1: -Compiler produce executable binary object file whereas an interpreter produce code, both executable can run many times.
Detailed explanation-2: -There are two main models for how program source code becomes executable: compilers and interpreters. A compiler is an executable program that takes program source code (text) as input and translates it into an executable program (binary machine code) that it writes into a file as output.
Detailed explanation-3: -Executable files contain binary machine code that has been compiled from source code. This low-level code instructs a computer’s central processing unit on how to run a program. The processor interprets the machine code and tells the computer’s hardware what to do.
Detailed explanation-4: -No. If a compiler does not include a linker and only produces object files, then it can never produce an executable, by definition.