Red zone (computing)

In computing, a red zone is a fixed-size area in a function's stack frame below (for a push-down stack) the current stack pointer that is not (necessarily) preserved by that function. The callee function may use the red zone for storing local variables without the extra overhead of modifying the stack pointer. This region of memory is not to be modified by interrupt/exception/signal handlers. The x86-64 ABI used by System V mandates a 128-byte red zone,[1][2] which begins directly under the current value of the stack pointer. The OpenRISC toolchain assumes a 128-byte red zone.[3]

Notes and references


gollark: https://dragcave.net/lineage/Pxe9S
gollark: Hmm, one Avatar seems to account for most of the madness.
gollark: I wonder where The Chaotician gets the extra 20 generations from. Most of the dragons at the edge are (near)-CB.
gollark: Or 10.
gollark: The stupid lineage viewer only goes back 11 generations...
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.