![]() |
Home | Libraries | People | FAQ | More |
A fcontext_t requires a stack which will be allocated/deallocated by a StackAllocator (examples contain an implementation of simple_stack_allocator).
![]() |
Note |
---|---|
The implementation of a StackAllocator might include logic to protect against exceeding the context's available stack size rather than leaving it as undefined behaviour. |
![]() |
Note |
---|---|
The stack is not required to be aligned; alignment takes place inside make_fcontext(). |
![]() |
Note |
---|---|
Depending on the architecture StackAllocator returns an address from the top of the stack (grows downwards) or the bottom of the stack (grows upwards). |