From e33c2b9fd55a48d66a639085334fc430de5270b2 Mon Sep 17 00:00:00 2001 From: Jet Hughes Date: Thu, 11 Aug 2022 11:29:21 +1200 Subject: [PATCH] vault backup: 2022-08-11 11:29:21 --- content/notes/10-intro-to-c-arrays-malloc-free.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/content/notes/10-intro-to-c-arrays-malloc-free.md b/content/notes/10-intro-to-c-arrays-malloc-free.md index 82325ad67..fafa0db7f 100644 --- a/content/notes/10-intro-to-c-arrays-malloc-free.md +++ b/content/notes/10-intro-to-c-arrays-malloc-free.md @@ -52,3 +52,16 @@ uint_t byte_array[1024]; - compiler chooses somewhere in memory - the name of the array maps to the location +## segments +- ![diagram](https://i.imgur.com/owQcqhJ.png) +- translation between virtual and physical pages +- compiler knows + - where in memory program is stored + - how much global data you use + - where the stack is + +## malloc +- "memory allocate" +- + +