Programming Language
Programming Language
Avila
Computer Program
A program is a set of instructions following the rules
of the chosen language.
Without programs, computers are useless.
A program is like a recipe.
It contains a list of ingredients (called variables)
and a list of directions (called statements) that tell
the computer what to do with the variables.
Programming Languages
Interpreter
is a program that executes instructions
written in a high-level language.
An interpreter reads the source code one
instruction or line at a time, converts this line
into machine code and executes it.
Programming Languages
Computer programming is the process of
writing, testing, debugging/troubleshooting,
and maintaining the source code of
computer programs.
This source code is written in a programming
language like C++, JAVA, Perl etc.
Types of Programming Language
Example:
Let us say that an electric toothbrush has a
processor and main memory.
The processor can rotate the bristles left and
right, and can check the on/off switch.
The machine instructions are one byte long,
and correspond to the following machine
operations:
Machine Language
Example:
Machine language : 10110000 01100001
Assembly language : mov a1, #061h
C
Example:
#include <stdio.h>
int main(void)
{
printf("hello, world\n"); return 0;
}
In-between Language
High-level Languages
1. FORTRAN
2. COBOL
3. BASIC
4. PASCAL
Programming Languages
In-between Languages
1. C
2. FORTH
Programming Languages
Low-level Languages
1. Assembly
2. Machine
Generations of Programming Language