High-level programming languages like C++, Visual Basic, and Java need to be translated into machine language for computers to execute them. This translation is done by translators, which include assemblers, interpreters, and compilers, each serving different purposes in converting code. Assemblers convert basic instructions to machine code, interpreters execute code line by line in real time, and compilers convert source code into a binary file for execution.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
5 views1 page
Chapter 6 ICT-pages-5
High-level programming languages like C++, Visual Basic, and Java need to be translated into machine language for computers to execute them. This translation is done by translators, which include assemblers, interpreters, and compilers, each serving different purposes in converting code. Assemblers convert basic instructions to machine code, interpreters execute code line by line in real time, and compilers convert source code into a binary file for execution.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1
Programming Language Translators
1. Most software packages or programs are written in high-level programming languages.
For example: C++, Visual Basic and Java. 2. In order for the computer to be able to carry out the instructions, the high-level languages must be translated into machine language before the computer can understand and execute the instructions in the program. 3. The translation of high-level languages to machine language is performed by a translator. 4. Types of translator: • Assembler - An assembler is a program that takes basic computer instructions and converts them into a pattern of bits that the computer's processor can use to perform its basic operations. - Some people call these instructions assembler language and others use the term assembly language. - Ex: MACRO-80 Assembler and Microsoft MASM • Interpreter - Interpreter is used to interpreting and execute a program directly from its source without compiling it first. The source code of an interpreted language is interpreted and executed in real time when the user executes it. - The interpreter will read each code, converts it to machine code and executes it line by line until the end of the program - Ex: BASIC, Logo, Smalltalk. • Compiler - The source code (in text format) will be converted into machine code which is a file consisting of binary machine code that can be executed on a computer. - It records them in the program-listing file if the compiler encounters any errors - It is generally more convenient to develop a new program using an interpreter rather than a compiler.