0% found this document useful (0 votes)
6 views

Language Translator

Uploaded by

bssgurukulam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

Language Translator

Uploaded by

bssgurukulam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Language translator

Computer programs are generally written in high-level languages (like C++,


Python, and Java). A language processor, or language translator, is a computer
program that convert source code from one programming language to another
language or to machine code (also known as object code). They also find errors
during translation.

 Compiler is a translator used to convert HIGH-LEVEL programming language to LOW-


LEVEL programming language. It converts the whole program in one session and reports
error detected the conversion.

ADVANTAGES: It runs faster. A compiler typically runs faster because it works with an already
compiled source code. It’s secure. Compilers don’t need an actual source code before a
programmer can execute it and it has Improved performance, Portability, increased Security,
debugging support, No dependencies.
Disadvantages of compilers: There are some disadvantages of using compiler in software
development. Compilation time, Error detection, portability, Execution speed, lack of flexibility,
Resource consumption.

 Interpreter: transforms the high-level program into an intermediate language


that it then executes, or it could parse the high-level source code and then
performs the commands directly, which is done line by line or statement by
statement. Following are the advantages of interpreter Ease of use, interactive
debugging, portability, faster development, more detailed error message than
compiler.
They also have some disadvantages including slower execution speed,
security risk, limited optimization, limited scalability, high memory usage.
 An assembler is a type of software utility that converts assembly
language code into machine code, which is the low-level language
understood by computers.
Assemblers typically operate on a line-by-line basis, converting each line of
assembly code into its equivalent machine code instructions.
Assembler has the following advantages Efficiency, Low-Level Access, Compact
Code, Real-Time Systems.
Disadvantages of Assembler are Deep knowledge in machine language,
Platform dependency, lack of understanding of higher level language concepts,
Maintenance difficulty.

You might also like