FINAL REVIEW Slides "Weeks 01 through 04" Flashcards
What is professor Adams’ Email
gba@purdue.edu
What is software?
Description of a computation expressed in a programming language, any necessary data, and documentation
What executes software?
An interpreter: A system that directly executes instructions expressed in a programming language
what are compiled programming languages?
high-level programming languages without an interpreter are compiled
memorize and look at the diagram of compiling for C (Figure 4.6, slide 21)
ok daddy
which step in the figure passes C language statements from input to output unchanged?
preprocessor
_____ code is interpreted by a machine
object
Where was the germanium crystal made?
Purdue
Today electronic computers are built from _____ elements
Silicon (Si)
Basic Capabilities an interpreter should have:
-Accept input
-Store values (include the memory function)
-Update / change existing values (variables)
-Compute (perform functions on value(s))
-Create output
Harvard Architecutre:
Had two separate memories, one for instruction memory and one for data memory. Also had processor (circuit to carry out computation) and input/output
Von Neumann Architecture:
One memory for both program and data, also had processor and I/O. Design was more flexible, and hence, economical, however less secure than Harvard since there was only 1 memory.
How many distinct bands in volatge?
2
4 parts of digital logic signal voltage waveform
1) low level 2) rising edge 3) high level 4) falling edge
how many wires does a k-bit bit string have?
k wires
a collection of k wires carrying the k bits of a k bit string
bus
how many distinct k-bit strings are there?
2^k (Product Rule of combinatorics)
Kibi
2^10
Mebi
2^20
Gibi
2^30
Tebi
2^40
unsigned integer, base 2, weighted positional
Add together powers of 2 if they’re “on” (1)
sign magnitude integer representation
leftmost bit represents sign: 0 = +, 1 = -, remaining bits are magnitude as usual (However, has + and - 0
two’s complement integers
Weighted, but MSB weight is negative:
-2^(n-1), + 2^(n-2), + …, + 2^1, + 2^0