lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Wed, 14 Apr 2010, Florian Weimer wrote:
> * Tony Finch:
>
> > You can manipulate the stack pointer in C without mucking around inside
> > the guts of a jmp_buf using alloca() or C99 variable size arrays. There
> > are some toy example coroutine implementations using this idea at
> > http://dotat.at/cgi/git?p=picoro.git;a=heads
>
> It's still undefied behavior.

Of course. So is guddling around inside a jmp_buf, or using assembler.

Tony.
-- 
f.anthony.n.finch  <dot@dotat.at>  http://dotat.at/
GERMAN BIGHT HUMBER: SOUTHWEST 5 TO 7. MODERATE OR ROUGH. SQUALLY SHOWERS.
MODERATE OR GOOD.