COMPUTER SCIENCE AND ENGINEERING
COMPILER DESIGN
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
Translator
|
|
Run time environment
|
|
Editor
|
|
Error diagnostics
|
Detailed explanation-1: -Hence, Compiler, Interpreter, and Assembler are types of language processors that convert programming languages to machine language (binary code). Compilers and interpreters are used to convert High-Level Language into machine language.
Detailed explanation-2: -Assemblers are a third type of translator. The purpose of an assembler is to translate assembly language into object code. Whereas compilers and interpreters generate many machine code instructions for each high-level instruction, assemblers create one machine code instruction for each assembly instruction.
Detailed explanation-3: -Examples of compiled programming languages are C and C++. An Interpreter directly executes instructions written in a programming or scripting language without previously converting them to an object code or machine code. Examples of interpreted languages are Perl, Python and Matlab.
Detailed explanation-4: -Assemblers, compilers, and interpreters are all types of program translator. However, they use different methods to translate programs. High-level languages, e.g. Visual Basic, C++, and Python, are used to write programs that are independent of the computer architecture they will run on.
Detailed explanation-5: -Compiler is a translator which is used to convert programs in high-level language to low-level language and then save the executable object code to memory.