stack-memory

Tag

Cards List
#stack-memory

Why don’t we allow stacks to be sparse, instead of forcing them to be contiguous?

The Old New Thing (Raymond Chen) · 2026-09-07 Cached

The article discusses why stacks are made contiguous in memory instead of sparse, highlighting security risks such as Stack Clash and implementation complexities in exception handling.

0 favorites 0 likes
#stack-memory

How do functions like alloca allocate memory from the stack?

Hacker News Top · 2026-08-17 Cached

The article explains how the alloca function allocates memory on the stack by calling the __chkstk function to probe the stack before adjusting the stack pointer, demonstrated with x86-64 assembly code.

0 favorites 0 likes
← Back to home

Submit Feedback