24 Computer -- Programming Concepts and Logics

What are language translators? List the types and explain each.

What are language translators? List the types and explain each.

Language translator is a program which is used to translate instructions that are written in source code to object code i.e. from high-level language or assembly language into machine language.

Or,

Language translators allow computer programmers to write sets of instructions in specific programming languages which are then converted by the language translator into machine code.



There are 3 types of language translators. They are:

  1. Assembler:

    Assembler is the language translator designed to translate assembly language program (source codes) into machine language program (object codes). The original assembly language program codes are called source codes and after translation, the final machine language program codes are called object codes.


  1. Compiler:

    A compiler is a language translator that translates high-level language program to machine language program all at once. While translating, it checks the syntax (grammar of the source code) and translates it into object code at a single attempt. If any error is found, the compiler produces syntax errors and causes of the errors. The source code file must be syntax error-free for complete compilation process.


  1. Interpreter:

    The interpreter is the language translator designed to translate high-level language program into machine language program, line-by-line or one instruction at a time. Unlike the compiler, it translates and executes one statement at a time before moving to another. If any error is encountered, the translation is halted and an error message is displayed.


More questions on Programming Concepts and Logics

Close Open App