Red zone (computing)
This article relies too much on references to primary sources. (September 2019) (Learn how and when to remove this template message)
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, which begins directly under the current value of the stack pointer. The OpenRISC toolchain assumes a 128-byte red zone.
Notes and references
- Michael Matz; Jan Hubička; Andreas Jaeger; et al., eds. (2018-01-28). "System V Application Binary Interface: AMD64 Architecture Processor Supplement (With LP64 and ILP32 Programming Models) Version 1.0" (PDF). 1.0.
- "i386 and x86-64 Options - Using the GNU Compiler Collection (GCC)". Retrieved 2011-04-10.
- "OpenCores Wiki - OpenRISC GNU toolchain". Retrieved 2014-05-28.
|This computer-programming-related article is a stub. You can help Wikipedia by expanding it.|