Compilation, Interpretation & Subroutines Flashcards
1
Q
What kind of compilation & interpretation is there?
A
- Levels of Programming Languages
- High Level to Low Level Translation
- High Level Program Execution
- Compilation vs. Interpretation
- Combined Compilation & Interpretation
- Compilation and Execution on Virtual Machines
2
Q
What kind of levels of programming languages are there?
A
High and low level languages
3
Q
What is in the high level languages?
A
e.g. Java, C/C++/C#, Fortran, Cobol, Pascal, etc
- Easier for humans
- Close to problem
- System independent
4
Q
What is in the low level languages?
A
Machine code – instructions stored in memory (opcodes)
- Hard to read and write by humans
- Close to system
- Doesn’t reflect problem
5
Q
What is assembly code?
A
It can be written or read by humans (using mnemonics)
6
Q
How to convert High level to Low level?
A
- To execute on a computer we must have machine code.
- Assembly code is translated to machine code to run
- “assembler” : does this for relocatable code.
- “Linker” : Combines different assembled parts into a Whole
- “Loader” : Loads into memory at a given location
7
Q
When executing a high level program, what are the 2 different ways?
A
- “Complied” into a program in the native machine language and then run on the target machine
- “ Interpret” and the execution is simulated within an interpreter