High level language
main()OR Basic same program in BASIC:
{
int x=2;
int y=5;
int c=x+y;
printf("x + y = %d\n",c);
}
1 LET x = 2Both of above program are easy to read and manage. Genreally you use term called source code for English like language code.
2 LET y = 5
3 LET c = x+y
4 PRINT c
5 END
Further, the time and cost of creating machine and/or assembly language was quite high. However, a computer cannot understand program written in English. Therefore, you use special program called compiler or interpreter to translate source code to object code:
-----------+
Program | +-------------+ +-------------+
Written | | Compiler/ | | Object code |
In | =======> | OR | =====> | (0s and 1s |
High level | | Interpreter | | code ) |
Language | +-------------+ +-------------+
-----------+
The difference between Compiler and Interpreter
| Compiler | Interpreter |
| Scan the entire program first and then translate it into machine code | Translate the program line by line on fly |
| Scan the entire program first and then translate it into machine code | Convert the entire program to machine code only when there is no syntax error and then you can execute program |
| Execution time is less | Execution time is more |
| Slow for debugging | Good for fast debugging |
Advantage of High level Language
- Readability
- Portability
- Ease of debugging
- Ease of software development
Introduction : Installing and configuring MySQL server
Assembly Language


