2
0
mirror of https://github.com/boostorg/context.git synced 2026-01-30 19:52:17 +00:00

context: new layout for fcontext_t

- fcontext_t takes pointer to stack (lower addresses) and stack size
 - make_fcontext() computes start address of stack pointer depending on
   architecture (growing upwards, downwards)
 - make_fcontext() preserves frame pointer on intel
 - stack alignment corrected on intel
 - BOOST_USE_UCONTEXT for performance measurements added


[SVN r80338]
This commit is contained in:
Oliver Kowalke
2012-08-31 19:50:07 +00:00
parent d1cb281c76
commit e32d499ae2
32 changed files with 650 additions and 490 deletions

View File

@@ -32,7 +32,7 @@ int main( int argc, char * argv[])
{
ctx::stack_allocator alloc;
fc1.fc_stack.base = alloc.allocate(ctx::minimum_stacksize());
fc1.fc_stack.sp = alloc.allocate(ctx::minimum_stacksize());
fc1.fc_stack.size = ctx::minimum_stacksize();
ctx::make_fcontext( & fc1, f1);