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.