• That's interesting - it does look pretty tidy, although it doesn't solve the MTU issue unless you also swap the order of heap and stack? IIRC there's something (_bss?) that you can actually modify at runtime such that if someone tries to use malloc (which was done in a recent bit of code you posted I think) you don't end up allocating over the top of it.

    Honestly right now it's not a big priority to add something like that though....

    Did you find where variables are used without initialisation? That sounds like a pretty worrying bug.

    How is C stack used in JS interpreter with relation to nested js functions, does it use just JS variables or C stack too?

    It's a bit of both. Because it's recursive descent it actually uses the stack pretty heavily so you need quite a bit.

About

Avatar for Gordon @Gordon started