๐Ÿ“— -> Lecture Date: Name


Lecture Slide Link

๐ŸŽค Vocab

โ— Unit and Larger Context

One big chunk vs Array of Arrays:

One Big Chunk:

  • Cons:
    • Need a lot of contiguous space

Array of Arrays:

  • Cons:
    • A lot of space is allocated to not storing actual values.
      • The space is reserved for array pointers.
      • A 4x5x6 array uses 17% of space for pointers. (4 arrays pointing to 5 arrays of 6 ints)

Structs:

Structs are like 1D arrays with properties being different sizes

FieldBytes Past Beginning of struct
x0
y4
s5
name7
d17
f25
Typedef struct Struct_Type{
	Int x;
	Char y;
	Short s;
	Char name[10];
	Double d;
	Float f;
} Example Struct; 

Ordering of Variables

Global Variables
  • Stored in order of appearance, so the first global will have the lowest address
Arguments
  • Stored in order of appearance, so the first argument will have the lowest address
Locals
  • Stored in reverse order of appearance, so the least local will have the lowest address

โœ’๏ธ -> Scratch Notes

๐Ÿงช-> Example

  • List examples of where entry contents can fit in a larger context

Resources

  • Put useful links here

Connections

  • Link all related words