Chapter 1 - A Tour of Computer Systems Flashcards
What is the difference between a text file and a binary file?
Text files consist exclusively of ASCII characters. All other files are binary files.
Who designed the C programming language and when?
C was developed by Dennis Ritchie of Bell Labs around 1969-1973.
What is responsible for the translation of a source file to an object file?
The translation is performed by the compiler driver.
What four stages does the compilation system consist of?
Preprocessing, compiler, assembler and linker.
What is the preprocessor (cpp) responsible for?
For modifying the program according to directives that begin with the # character.
The preprocessor typically generates a .i file.
What is the compiler (cc1) responsible for?
Translating a .i text file into a text file with the .s suffix, which contains an assembly language program.
What is the assembler (as) responsible for?
Translating a .s file containing assembly language instructions into machine language instructions, stored as a .o file.
What is the linker (ld) responsible for?
Merging library object files with a given object (.o) file to produce an executable.
Fill in the blank:
______ are electrical conduits that carry bytes of information between components.
Buses are electrical conduits that carry bytes of information between components.
What is the term given to the size of data transferred along a bus?
A “word”.
Fill in the blank:
The number of _____ in a _____ is a fundamental system parameter.
The number of bytes in a word is a fundamental system parameter.
What are standard word sizes for machines today?
4 bytes (32-bit) or 8 bytes (64-bit).
What are I/O devices?
The systems connection to the external world (e.g. keyboard, mouse, etc.).
In what two ways are I/O devices connected to the I/O bus?
By an adapter or a controller.
What is the difference between an adapter and a controller?
A controller is a chip sets in the device itself or on the system’s motherboard.
An adapter is a card that plugs into a slot on the motherboard.
What is the main memory?
A temporary storage device that holds a program and the data it manipulates while the processor is executing the program.
Fill in the blank:
Main memory consists of a collection of ______ random access memory (____) chips.
Main memory consists of a collection of dynamic random access memory (DRAM) chips.
What component is responsible for interpreting instructions stored in main memory?
The central processing unit (CPU).
Fill in the blanks:
The _______ _______ is a processor _______ that indicates where a computer is in its program sequence.
The program counter is a processor register that indicates where a computer is in its program sequence.
True or false? The entire time the system is awake, a processor repeatedly executes the instruction pointed at by the program counter and updates the program counter to point to the next instruction.
True.
What computer component does PC stand for?
Program counter.
What is the instruction set architecture?
A simple instruction execution model that a processor appears to operate according to.
What does ISA stand for?
Instruction set architecture.
Fill in the blanks:
The operations the processor performs revolves around the ____ _______, the ______ ____ and the ________ ____ ____.
The operations the processor performs revolves around the main memory, the register file and the arithmetic logic unit.