CS:APP One Flashcards
What is a computer system?
A collection of hardware and software components that work together to run computer programs.
What is the source program a sequence of?
Bits with a value of 0 or 1
What are bits organised into?
8 bit chunks called bytes
What does each byte have?
An integer value that corresponds to a character
What are text files?
Files that consist exclusively of ACII characters?
What are files other than text files called?
Binary files
What is all information represented as?
A bunch of bits
What distinguishes different data objects?
The context in which we view them. For example, the same sequence of bits may represent an integer and a character.
What is a property of a high level program?
It can be understood by humans
What is required to run a high level program on a computer?
They must be translated by programs into a sequence of low level machine language instructions. THese instructions are then packaged in a form called an executable object program and stored as a binary disk file.
What is the translation from source file to object file performed by?
A compiler
What are the four phases of the compilation system?
Preprocessor, compiler, assembler, linker
What does the preprocessor do?
modifies the orginal C program according to directives that begin with the # character
What does the compiler do?
Translates into a file that contains an assembly language program. Each statement in an assembly language program exactly describes one low level machine language instruction in a standard text form
Why is assembly language useful?
It provides a common output language for different compilers for different high level languages