Professional Documents
Culture Documents
1580500850484106
1580500850484106
Programming
Lecture 1
Introduction To Computer
Programming
Class Hours
–
Introduction.
MATLAB Syntax and Commands.
Use of MATLAB to Solve Engineering Problems.
Algorithms.
Conditional Statement.
Repetition Loops.
Subprograms.
Matrix Manipulation.
File I/O.
GRADING
Edsger W. Dijkstra –
stimulated move to structured
programming by declaring
"GOTO" harmful
1960S CONTINUED
Harlan B. Mills – advocated
use of structured programming
StephenWozniak and
Stephen Jobs - cofounders of
Apple Computer Inc.
MitchellD. Kapor -
cofounder of Lotus
Corporation
BjarneStroustrup - creator of
the C++ programming language.
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
(translated 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
hierarchy
What does the computer
understand?
• Computer only understands machine language
instructions.
Assembler
• Instructions written in assembly language
must be translated to machine language
instructions :
– 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
Assembly Machine
Assembler
Language Language
Compiler
• Instructions written in high-level language also
must be translated to machine language
instructions :
– Compiler does this
• Generally one to many translation : One HL
instruction is mapped to many ML instruction.
• HL instructions are not CPU specific but compiler
is.
Compilation
Source Target
Program Compiler Program
Interpreter Output
Input