Documente Academic
Documente Profesional
Documente Cultură
Languages
Chapter 1
Aaron Bloomfield
Fall 2005
Computed if the first items weight was less than, equal to, or
greater than the second items weight
Stonehenge
Computer Size
ENIAC then
ENIAC today
Special purposes
Personal preference
Expressive power
Ease of implementation
Good compilers
Economics, patronage
Programming domains
Scientific applications
Business applications
Systems programming
Programming domains
Parallel programming
Artificial intelligence
Scripting languages
Programming domains
Education
Special purpose
Programming paradigms
You have already seen assembly language
We will study five language paradigms:
Compilation stages
Scanner
Parser
Semantic analysis
Intermediate code generation
Machine-independent code improvement (optional)
Target code generation
Machine-specific code improvement (optional)
For many compilers, the result is assembly
Compilation: Scanner
Recognizes the tokens of a program
Compilation: Parser
Puts the tokens together into a pattern