What portable ways exist to change the stack frame to an arbitrary buffer? Say to:
char stack[1024];
or
new char[1024];
What portable ways exist to change the stack frame to an arbitrary buffer? Say to:
char stack[1024];
or
new char[1024];
I believe what you are looking for is Boost.Context. To switch the current running context (what you are calling a "stack") to an arbitrary buffer, use boost::context::preallocated
when creating your boost::context::context<T>
instance.