N = number of nodes in tree K = average # of non-leaf nodes per tile K' = maximum number of nodes to examine in any tile T = number of different tiles T' = average # of tiles matching at each nodeFor example, typical RISC machines have T = 50, T' = 5, K = 2, and K' = 4.
Item | RISC | CISC |
---|---|---|
registers | 32 | 6, 8, 16 |
register classes | one | many; dedicated registers for some ops |
arithmetic operations | register only | memory and register (modes) |
instruction type | three address: r1 <- r2 op r3 | two address: r1 <- r1 op r2 |
addressing modes | M[reg+const] | many |
instruction size | one word | variable |
side effects | none | auto-increment, others |
Instr
: represents assembly instructions with blanks
for registers
TempList
MEM(BINOP(PLUS, TEMP(fp), CONST(8)))represented as
new OPER("LOAD 'd0 <- M['s0+8]", new TempList(new Temp(), null), new TempList(frame.FP(), null))
new OPER("add 'd0, 's1", new TempList(t1), new TempList(t1, new TempList(t2, null)))