Introduction To Computer Programming
Introduction To Computer Programming
Introduction To Computer Programming
Programming
Lecture 1
Introduction To Computer
Programming
Class Hours
– sunday : 9:00 am - 3:00 pm
Paul
Allen and Bill Gates - cofou
nders of Microsoft Corporation
Bjarne
Stroustrup - creator of the
C++ programming language.
5. Test and debug: Locate and remove any errors in the progra
m.
Operating System
Compilers
Assemblers
Interpreters
Evolution of Programming languages
– First Generation : Machine languages
• Strings of numbers giving machine specific instructions
• Example:
+1300042774
+1400593419
+1200274027
– Second Generation : Assembly languages
• English-like abbreviations representing elementary computer operations (tr
anslated via assemblers)
– Example:
LOAD BASEPAY
ADD OVERPAY
STORE GROSSPAY
– Third Generation : High-level languages
• Codes similar to everyday English
• Use mathematical notations (translated via compilers)
• Example: grossPay = basePay + overTimePay
Programming Language hierarch
y
What does the computer understa
nd?
• Computer only understands machine language i
nstructions.
Assembler
• Instructions written in assembly language m
ust be translated to machine language instru
ctions :
– Assembler does this
• One to one translation : One AL instruction
is mapped to one ML instruction.
• AL instructions are CPU specific.
Compilation into Assembly
Source Assembly
Program Compiler Language
Source Target
Program Compiler Program
Interpreter Output
Input