09. Programming Languages-1
09. Programming Languages-1
LANGUAGES
_____________
Habib
Ullah
Programming?
The system sends events to the program and the program responds to these as
they arrive.
Events can include things a user does - like clicking the mouse - or things that
the system itself does - like updating the clock.
Memory
All programs consists of:
1. Sequence of instructions
2. Conditionals
3. Loops
printf("hello, world\ OS
n"); executabl
e CPU
compiler
Memory
• Low Level Programming Languages
High and Low Level Languages
Compilers:
Takes longer to compile, but super-fast
execution
Similarities
• An interpreter
• Reads one statement then translates it and executes it and then takes
another.
• Easy to check for mistake(debug) than a compiler
• Programme instructions are performed slowly
• A Compiler
• Translates the entire program in one go and then executes it (.exe file).
• Hard to spot and correct mistakes
• Cannot make changes once executable programme is created.
• Programme instructions are performed quickly
Uses