Chapter 1 Flashcards
Much of computer architecture involves the substitution of _______ for _______
Much of computer architecture involves the substitution of numeric codes for symbols
The manipulation of the symbols that represent numeric codes is facilitated by what?
A macro processor
What is m4?
The UNIX macro processor.
Define “accumulator”
An accumulator is a register used to contain the results of an arithmetical or logical operation
Define “register”
A location in a store of data, used for a specific purpose and with quick access time
What is a stack?
A stack is a first-in-last-out data structure in which only the top stack elements are accessible
What is it called when we remove something from a stack?
popping
What is it called when we place items onto a stack?
pushing
What is the ALU?
The arithmetic logic unit. The unit in a computer that carries out arithmetical and/or logical operations
Stacks and registers are two forms of what?
Memory
Why is a stack convenient for expression evaluation?
Because memory addresses are not needed
Why would one use a register instead of the stack?
Registers are useful when values enter into the computation in a less structured manner
In a computer, what is an “address”?
A location in memory
What executes the machine language?
The central processing unit (CPU)
What does the program counter do?
It keeps track of the address of the next instruction to be executed