lb leads a singlebyte 8bits
Integers are 4bytes 32bits word
Topic V08
Storing Arrays in Memory
1
, Assumption
C code: x ↔ s3
i ↔ t0
x = i base of A[] ↔ s6
tempt
A[i]; A is an array of 32-bit
integers
RISC-V code:
2
Integers are 4bytes 32bits word
Topic V08
Storing Arrays in Memory
1
, Assumption
C code: x ↔ s3
i ↔ t0
x = i base of A[] ↔ s6
tempt
A[i]; A is an array of 32-bit
integers
RISC-V code:
2