Introduction To Programming
Introduction To Programming
End Show
Resource Team
R.P Ranjan-Lecturer, SPICTEC, Galle. W.M.A.S . Wijesekara-Centre manager,CRC Hali-Ela H.P.U.S Indra Kumara-Instructor,CRC Hanguranketha R.M.P Bandara-Lecturer,CPICTEC Gurudeniya K.M.P.U Wimalaweera-Instructor,CRC Polonnaruwa
End Show
End Show
Cont.
The machine can understand only the machine language. Assembly and other high level languages are not machine language. To transform these languages into machine language, translators are needed.
Source Code
Translator
Object Code
End Show
2nd Generation
3rd Generation
4th Generation
5th Generation
End Show
2nd
3rd
4th
5th
End Show
Machine level programming language Machine code is the binary digit language
End Show
End Show
End Show
many of the third generation languages are procedural languages because the program instructions comprise a list of steps or procedures They are not machine dependent languages One instruction in a third generation language can replace many assembly language instructions programmer has to describe how it should be done. Ex : Basic, Fortran, Cobol, Pascal
End Show
Introduced in the late 1980s They are designed to reduce programming effort It consumes less time to write a program They are non procedural languages Very easy to write and modify
Introduced in the early 1990s User-friendly Graphical User Interfaces are facilitated. Very easy to write and modify program Execution speed is low
End Show
First and second generation languages are considered low level languages. They are machine dependant languages These languages are close to the hardware The programmer should have hardware knowledge to write a program Productivity is low
End Show
3GL,4GL and 5GL are considered high level languages They are machine independent languages It is easy to write and modify The programmer does not need knowledge of hardware to write programs Productivity is high Consume less time to write programs 5GL allow user-friendly facilities Translators need to be used to convert to machine language
End Show
Translators
Translator is used to convert source code into object code. these are of three types 1. 2. 3. Assembler Interpreter Compiler
Source Code
Translator
Object Code
End Show
Assembler
is a low-level language Translator. is a software program that converts assembly language into machine language. converts mnemonics into machine code
End Show
Interpreter
is a translator that goes through the process of translation every time the program is run. is found running some versions of BASIC, where it translates one line of the program at a time.
End Show
Compiler
is a translator of high level languages converts a whole program into machine language at once translates source code into Object Code. This Object code is used to execute whenever it is run
End Show