Sunday, September 26, 2010

Computer language

-COmputer understand olny machine language , which consists of 0s and 1s .
-The evolution of computer languages is as follows :

First Generation : MACHINE LANGUAGE
-Uses binary codes (0s and 1s).
-The olny language that computers can understand . No translation required
-Platform-dependent and very hard to program
-
Second generation : Symbolic language / Assembly Language
-Uses symbolic instruction codes and mnemonics ( meaningful abbreviations )
-Source program has to be translated to machine language using an assembler
-PLatform-dependent but easier to program
-E.g. MASM 6.15 , Turbo Assembler , etc

Third Generation :High level Language /Procedural Language
-Uses ENglish-like instruction codes and mathematical operators
-Source program has to be translated to machine language using a compiler or interpreter .
-With a compiler ( see Figure 1.2 ) , the source program is converted into a machine language object program . If the compiler encounters any errors , it will be shown as a program error listing .When the users wants to run the program , the object program is loaded into the computer memory and the program instruction are executed .
-Platform-independent and very easy to program
-E.g C , Pascal , Cobol , ETC

No comments:

Post a Comment