CMPT 295 Lecture Notes - Lecture 10: Dot Product
Document Summary
Maintains address of last used byte of the stack (the top) Initialized to some value (assigned by os) of startup. Sometimes there aren"t enough registers to hold your computations. So use the stack for temporary storage e. g. dot product demo: x * y = [5, 10] * [6, -7] = 5*6 + 10*-7 = 30 + -70 = -40. Imul (%rsi), %rax # rax