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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What kind of levels of programming languages are there?

A

High and low level languages

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is assembly code?

A

It can be written or read by humans (using mnemonics)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How to convert High level to Low level?

A
  1. To execute on a computer we must have machine code.
  2. 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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

When executing a high level program, what are the 2 different ways?

A
  1. “Complied” into a program in the native machine language and then run on the target machine
  2. “ Interpret” and the execution is simulated within an interpreter
How well did you know this?
1
Not at all
2
3
4
5
Perfectly