ARM32 - Dynamic Arrays, Classes in Assembly

Channel:
Subscribers:
2,640
Published on ● Video Link: https://www.youtube.com/watch?v=PdTgC3PLsSs



Duration: 1:42:21
263 views
3


Last time we learned how to do static allocations to make variables and arrays, this time we learned how to dynamically allocate memory without malloc() or new, just using sbrk(). Classes and arrays are basically the same thing, except with classes you lose the nice ability to find the offset of the Nth element by simply multiplying N by the sizeof() an element. You have to write down the offsets somewhere and use those instead.







Tags:
csci 45
arm32
assembly
sbrk
malloc
new
dynamic arrays
classes