unit 8: computer architecture operating system Flashcards
source code
original language that a high-level/assembly language is written in
machine code
the language a computer’s CPU understands
assemblers
converts assembly languages into object code, which is then linked together to form machine code
compilers
translate high-level language into object code (often created in form of executable file). then linked to form machine code
interpreters
takes each line of high-level language code, one at a time, and converts it into intermediate language (often assembly)
stored program computer
computer that stores program instructions in memory
Fetch-Decode-Execute cycle
a sequence of actions that a CPU performs to execute each machine code instruction in program
Von Neumann architecture
architecture where data and program instructions are stored in the same memory location
Von Neumann Components
*memory
* control unit: manages movement of instructions & data
* input/output: enables user to interact w/ machine
* bus: electrical pathway used to move data & instructions around computer
*program counter: holds address in memory of next instruction
Von Neumann disadvantages
- data & instructions both have to use the same bus so CPU spends too much time waiting for instructions
- if a program is badly written, data can overwrite program instructions and vice versa
Harvard Architecture
data & program instructions are stored in diff memory locations w/ dedicated buses
pipelining:- data is lined up ready to be fetched
no waiting for 1 item of data to be processed before next item is fetched