CSE 220 Lecture Notes - Lecture 8: Linear Search, Endianness
Document Summary
The registers are called saved registers because a caller is guaranteed (by convention) that these registers will be saved by the callee. The registers are called temporary because they don"t have to be saved by the callee. If the caller needs to preserve the registers, the caller must save them. The caller is the function that calls another function. The callee is the function that gets called. Size of a single element in the array (in bytes) The size of the array can be calculated as: # of elements x size of 1 element in bytes. For example for ints, we would need to multiply the number of them by 4. The first step to accessing an array in memory is to load the base address into a register (0x10007000 in example) Then we use an offset to that base address to access individual elements. In this example we have an array of words.