Subject: Re: [boost] [context] make_fcontext stack pointer unclear from documentation
From: TONGARI (tongari95_at_[hidden])
Date: 2013-05-25 09:19:48
2013/5/25 Oliver Kowalke <oliver.kowalke_at_[hidden]>
> 2013/5/25 Michael Marcin <mike.marcin_at_[hidden]>
> > The function make_fcontext takes a stack pointer. However it is not clear
> > at all from the documentation that the stack pointer should actually
> > to the end of the stack buffer.
> hmm - itis architecture depended in which direction the stack grows. The
> current supported architectures use downward growing stacks.
> The documentation contains :
> '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). '
Can't this library take care of the architecture and always require the
StackAllocator to return the lowest address?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk