You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
flag to support inner functions or not (decided based on if we use gcc or tcc)
when supporting inner functions, generate them in function syntax int f(int x) { ... }
when not supporting inner functions, closure conversions
for cpp codegen compiled with gcc, it seems that we can either use cpp closure or inner functions (not sure if there are differences between them). How do we choose?
Outstanding Problem:
In handling closure codeGen of CPP, we replace the lambda_forward symbol with lambda.
that is to say: if x2 = lambda_forward(x3), then replace all codegen of x2 with x3.
This is current wrong because it generate invalid code for mutually recursive closures.
The text was updated successfully, but these errors were encountered:
Outstanding Problem:
In handling closure codeGen of CPP, we replace the lambda_forward symbol with lambda.
that is to say: if x2 = lambda_forward(x3), then replace all codegen of x2 with x3.
This is current wrong because it generate invalid code for mutually recursive closures.
The text was updated successfully, but these errors were encountered: