Levels of Architecture Flashcards
Level 0
Digital logic
Level 1
Microarchitecture
Level 2
Instruction sets
Level 3
Operating system
Level 4
Assembly language
Level 5
High-level languages (Python, Java, etc.)
Compiler
Translates high-level languages into machine code (i.e. binary)
Before compiling, the user must first identify…
Instruction set architecture, operating system and programming language
True or false: Compilers inform the user of all errors in the program
False! Compilers only inform users of the first error it finds.
True or false: Compilers translate the whole program at the same time
True! This means that programs only need to be compiled once.
Assembler
Translates assembly language into machine code
Interpreter
Doesn’t translate programs into machine code, instead reads it line-by-line
How do the levels of architecture work together to run a program?
- Program is written in high-level language
- Program is compiled and assembled
- OS interprets program
- OS uses instructions to translate program into machine code
- Microarchitecture interprets machine code
- Signals and logic gates are used to work with the hardware