3 ms·
Err… I think recursive inner functions would just blow up… oops. I guess it’s a good thing I didn’t advertise inner functions and only used them in the standar
by loup-vaillant 3y ago
Err… I think recursive inner functions would just blow up… oops.
I guess it’s a good thing I didn’t advertise inner functions and only used them in the standard library…
- kragen 3y agowell, that's the problem the static link solves; it's not such a difficult thing to implement if you let procedure values (function pointers) be two words instead of one. gcc emits trampoline code onto the stack at runtime to support this without breaking abi compatibility, so the pointer to the nested function actually points to the trampoline, which just supplies the static link and calls the real nested function