0

What portable ways exist to change the stack frame to an arbitrary buffer? Say to:

char stack[1024];

or

new char[1024];
user1095108
  • 14,119
  • 9
  • 58
  • 116

1 Answers1

1

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.

Travis Gockel
  • 26,877
  • 14
  • 89
  • 116