Skip to content

Instantly share code, notes, and snippets.

@pkutaj
Created May 26, 2026 07:21
Show Gist options
  • Select an option

  • Save pkutaj/bf3fcb440d41f7de038541ab585be092 to your computer and use it in GitHub Desktop.

Select an option

Save pkutaj/bf3fcb440d41f7de038541ab585be092 to your computer and use it in GitHub Desktop.
Explaining The Heap snippet
Lower Address <--------------------------------------------------------> Higher Address
*<pointer>
+----------+-----------+-----------+---------+---------+---------+---------+----------+
| <return> | uses_nvim | wpm | name[0] | name[1] | name[2] | name[3] | ... |
+----------+-----------+-----------+---------+---------+---------+---------+----------+
| ... | 1 | 150 | 'p' | 'a' | 'u' | 'l' | ... |
+----------+-----------+-----------+---------+---------+---------+---------+----------+
| 0xFEFC | 0xFF00 | 0xFF04 | 0xFF08 | 0xFF0C | 0xFF10 | 0xFF14 | 0xFF18 |
+----------+-----------+-----------+---------+---------+---------+---------+----------+
\____________________________________________________________________________________/
Stack Frame
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment