CSE 220 Lecture Notes - Lecture 8: Linear Search, Endianness

40 views4 pages

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.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents