Ah, that’s a great hint. I want to use it to get better call/cc, but that’s kind of similar to stackless coroutines. Any idea how Go did it using GCC? > On Oct 31, 2020, at 1:45 PM, Basile Starynkevitch wrote: > > > On 10/31/20 6:33 PM, David Malcolm via Jit wrote: >> On Sat, 2020-10-31 at 05:58 +0000, Qiantan Hong wrote: >>> Hi, >>> >>> I’m trying to find a way to implement/hack >>> a runtime using spaghetti stack with libgccjit, >> I have to confess that I wasn't familiar with the term "spaghetti >> stack". > > > IIRS, the Go language and execution model has it. This is how you could have millions of goroutines with only a few dozen threads (and call stacks) > > > Regards. > > -- > Basile STARYNKEVITCH == http://starynkevitch.net/Basile > opinions are mine only - les opinions sont seulement miennes > Bourg La Reine, France; > (mobile phone: cf my web page / voir ma page web...) >