Skip to content
Free public beta until December 4, 2026: every course is open, no card needed. After that, the first chapter of each course stays free and full access is a one-time $39 ($19 for up to 100 founding members chosen for helpful feedback). Your progress is kept. How the beta works

red zone

On Linux and macOS PCs, 128 bytes just below the stack pointer that a function may use without moving the stack pointer; Windows has no such area.

The x86-64 ABI used by Linux and macOS guarantees the 128 bytes below rsp are not overwritten asynchronously, so leaf functions may use them as scratch; 64-bit Windows and ARM64 Linux have no red zone, while Apple's ARM64 ABI also allows 128 bytes.

Examples

  • A Linux or macOS x86-64 leaf function may use the 128 bytes below rsp without moving rsp. Windows has no red zone.

Read the full section →