STR-119: Replace GCC nested functions by stack-allocated closures as structs
Nested functions are causing a lot of problems: the stack must be executable and GCC at Mac OS X still doesn’t support them correctly.
The nested functions can be replaced by declaring all local variables in a struct. Nested functions get a pointer to the struct of their lexical scope. A struct might need to have a pointer a struct of its own lexical outer scope. As an alternative, nested functions could be given pointers to structs for all outer lexical scopes.
Submitted on 18 June 2004 at 09:23
Issue Log
On 4 August 2006 at 00:15 Jira commented:
STR-119, visser:
The development of the new compilation scheme has been finished in revision 15511; the build of the development branch was succesful.
Log in to post comments