Chapter 1 - Overview of Proramming Languages
Chapter 1 - Overview of Proramming Languages
1 Chapter
OVERVIEW OF COMPUTERPROGRAMMING LANGUAGES
Programming languages enable a programmer to precisely specify what data a computer will act
upon, how these data will be stored/transmitted, and precisely what actions to take under various
circumstances.
There are different types of programming languages that can be used to create programs, but
regardless of what language you use, these instructions are translated into machine language that
can be understood by computers.
1. Machine Language
It is the only language that the computer understand. It consists only of binary numbers 0 and
1. It runs very fast because no translation program is required for the CPU.
Assembly languages are similar to machine languages, but they are much easier to program
in because they allow a programmer to substitute names for numbers. Assembly languages
are available for each CPU family, and each assembly instruction is translated into one
machine instruction by an assembler program.
A high-level programming language enables the programmer to write programs that are more
or less independent of a particular type of computer. They are consider high because they are
closer to human language than the machine language for the computer truly understands.
Easier to understand debug and modify than low-level language. Ultimately, programs written
in this language must be translated into machine language for computer to understand.
1.3 TRANSLATORS
1. Compiler
A program that translates a program written in High level language (source code) and
translate into machine language (object code).
2. Interpreter
Translates and executes the program line by line into intermediate form.