Programming Language
Programming Language
Translators
Integrated development
environments (IDEs)
WHAT IS A PROGRAM
A computer program is a list of instructions that enable a computer to
perform a specific task.
Computer programs can be written in high-level languages and
low-level languages depending on the task to be performed and the
computer to be used.
Most programmers write programs in high-level languages.
PROGRAMMING LANGUAGES
There are several types of translator program in use; each one performs a
different task.
• Compiler
• Interpreter
• Assembler
Compilers
A compiler is a program that translates an entire program written in a
high level language (HLL) into machine code all in one go so that it can
be directly used by a computer to perform a required task.
Once a program is compiled the machine code can be used again and
again to perform the same task without re-compilation.
If errors are detected, then an error report is produced instead of a
compiled program.
An interpreter reads a statement from a program written in a high-level
language line by line, translates it, performs the action specified and then does
the same with the next statement and so on.
If there is an error in the statement then execution ceases and an error message
is output, sometimes with a suggested correction.
Assemblers
An assembler is a computer program that translates a program written in
an assembly language into machine code so that it can be directly used by a
computer to perform a required task. The assembly language program
statements: