Intro Flashcards
What are the 4 language evaluation criteria?
1.Readability: the ease with which programs can be read and understood
2.Writability: the ease with which a language can be used to create programs
3.Reliability:conformance to specifications (i.e., performs to its specifications)
4.Cost: the ultimate total cost
What is a well-known computer architecture?
Von Neumann
What are the 4 language categories?
1.Imperative
2.Functional
3.Logic
4.Programming hybrid
Describe imperative
Central features: variables, assignment statements, iteration
Support object-oriented programming
Examples: C, Java, C++, Python
Describe functional
Computations are made by applying functions to given parameters
Examples: LISP
Describe logic
Rule-base
Example:Prolog
Describe programming hybrid
Markup languages extended to support some programming
Example: JSTL
What are the 2 levels of byte code type language?
- The byte code compiler
2.The virtual software that interprets the byte code at runtime
What are the 3 implementation methods?
- Compilation
2.Pure interpretation
3.Hybrid implementation systems
Describe compilation
Translates high-level program (source language) into machine code(machine language)
What are the 4 phases of compilation?
- lexical analysis: characters into lexical units
2.syntax analysis: lexical units into parse trees
3.semantics analysis: generate immediate code
4.code generation:generate machine code
What are 2 compilation terminologies?
- Load module (executable image):user + system code
2.Linking and loading:process of collecting system program units and linking them to a user program
Describe pure interpretation
No translation
Uses dynamic data types defined at runtime
Slower execution , more space
Describe hybrid implementation systems
Comprise between compilers and pure interpreters
High-level language program translated to an intermediate language for easy interpretation
CONVERSION BEFORE OR RUN-TIME
Faster than pure interpretation
What are preprocessors?
They process a program immediately before the program is compiled to expand embedded preprocessor macros.
Preprocessor macros–>Instructions are commonly used to specify that code from another file is to be included
Example: C preprocessor