CS208 Introduction to Computer Systems Wednesday, 11 Jan 2023 + Today - memory - pointers - structs - the queues assignment - the importance of understanding what the heck is going on + Memory organization of a C program - Instructions (fixed-size at compile time, "text") - Initialized data (fixed-size at compile time, read-only) - Global variables (fixed-size at compile time, read-write) - The heap (space you allocate via malloc) - The system stack (local variables & function parameters) (grows from high addresses towards lower) + Memory & C pointers - Variables have types - You can "typecast" some variables from one type to another - Declaring a variable - Defining a variable - Declaring/defining/initializing pointers - Initializing a variable - The & unary operator - The * unary operator + C structs - What are they? - typedef - . vs. -> + Break + The queues assignment