Documente Academic
Documente Profesional
Documente Cultură
• Readability
1. Overall Simplicity
Language Evaluation 2. Orthogonality
3. Control Statements
Outline and Reading 4. Data types and Structures
• Chapter 1 (§1.3 –§1.8) 5. Syntax considerations
• Writability
1. Simplicity and Orthogonality
2. Support for abstraction
3. Expressivity
3 UPEI CS262 Winter 2019 Cezar Câmpeanu 4 UPEI CS262 Winter 2019 Cezar Câmpeanu
Language Evaluation
Language Evaluation
• Reliability
• Readability = the easy with which programs can be read and 1. Type Checking
understood. 2. Exception Handling
• Orthogonality = relatively small set of primitive constructs can be 3. Aliasing
combined in a relatively small number of ways to build the control and 4. Readability and Writability
data structures of the language. The lack of orthogonality leads to
exceptions to the rules of the language. • Reliability = it performs to its specifications under all conditions.
• Writability = measure of how easily a language can be used to create • Type checking = testing for type errors in a given program
programs for a chosen problem domain. • Exception handling = The ability of a program to intercept runtime
• Abstraction = ability to define and then use complicated structures or errors, take corrective measures and than continue.
operations in ways that allow many of the details to be ignored. • Aliasing = Having two or more distinct referencing methods or names
for the same memory cell.
✬ ✩
Language Evaluation
✬ ✩
Fortran C++ LISP
Compiler Compiler Interpreter
✬ ✩
Operating
• Costs System
C Operating
✗✔
Compiler System
1. Costs of training programmers Macroinstruction
Interpreter
Command
Interpreter
Ada
2. Costs of writing programs Compiler Bare
✖✕
Machine Assembler
7 UPEI CS262 Winter 2019 Cezar Câmpeanu 8 UPEI CS262 Winter 2019 Cezar Câmpeanu
✓ ✏
Compilation vs Interpretation
✒ ✑
Source
program
✛
Intermediate Code
❄
Stages for a program:
✲ Code
Generator
Machine Language
• executable code