mfichman / jogo

High(er) performance compiled programming language with clean, powerful syntax
MIT License
6 stars 1 forks source link

Growable stack for coroutines #37

Closed mfichman closed 13 years ago

mfichman commented 13 years ago

There's still a slight issue to deal with, namely that if a native function is called, the stack can't be monitored anymore. Really, if a native call is made in the function, then additional space should be assumed necessary. This would require analysis to determine if native calls were made in the stack frame.

mfichman commented 13 years ago

I've decided that a 4K reserve area is good enough. Every function call needs enough space to call malloc() if the stack needs to be grown.

mfichman commented 13 years ago

Done.