Computer Systems Flashcards
(42 cards)
What is a translator?
It translates from one language to another.
What are the three types of translators?
Compiler, Interpreter, Assembler
What is the purpose of the CPU?
Processes instructions that drive the computer.
What is Von Neumann architecture?
The program and data are both stored in the same memory. This allows instructions to be fetched and executed sequentially.
What are the main components of the CPU?
ALU (arithmetic logic unit)
Clock
Control Unit
Bus
Registers
What is the purpose of the ALU?
Performs arithmetic and logic operations, and shifts bits in a computer word.
What is the purpose of the clock?
The clock controls the timings of the processor, and switches between 0 and 1 several million times a second.
This is measured in hertz Hz.
What are registers?
Registers are very high speed memory locations in the CPU. An 8-bit CPU will have registers that are each 8-bit.
What is hardware?
The physical components that make up a computer.
What is software?
The non-physical programs that are stored by and run on a computer.
What is system software?
Software that provides a platform for other software to run.
What is machine code?
Code written in binary to execute an instruction.
What is assembly code?
Assembly code allows a programmer to write programs more easily.
LDA 51
ADD #FF
Can a machine or assembly code written on a Mac be run on a Windows computer?
No - the low level languages are processor specific.
What is assembly language used for?
Embedded systems
Controls precisely any instruction on the processor
Controls specific hardware components.
What type of language are assembly and machine code?
Low-level language.
What are the advantages of high-level languages?
Easier to debug and read
Easier to learn as they look a lot more like English
Can be run on different types of processors
Programs are written faster.
What are the advantages of low-level languages?
More control over hardware
Run much quicker
Require less RAM
What is an assembler?
Translates assembly code into machine code.
What is a compiler?
Translates a whole high-level language program into machine code at once and produces an object code.
What languages are high-level languages?
Python, Java, C#, Visual Basic, C++, Javascript
What is an interpreter?
Interpreter translates each line of a high-level program separately and stops if there is an error to display an error message.
What languages use compilers?
C, C++
What is the purpose of the Control Unit?
Co-ordinates and controls the instructions taking place in the CPU.
Decodes and executes instructions.
Receives instructions from clock.