Spaghetti stack?

Qiantan Hong qhong@mit.edu
Sat Oct 31 19:52:00 GMT 2020


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 <basile@starynkevitch.net> 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; <basile@starynkevitch.net>
> (mobile phone: cf my web page / voir ma page web...)
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1858 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/jit/attachments/20201031/66d2c7a3/attachment.p7s>


More information about the Jit mailing list