Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce variable names in code generation #16

Closed
LeventErkok opened this issue Apr 5, 2011 · 1 comment
Closed

Reduce variable names in code generation #16

LeventErkok opened this issue Apr 5, 2011 · 1 comment

Comments

@LeventErkok
Copy link
Owner

The code generator uses way too many variables than necessary, due to the single-static assignment form it generates. It also skips a whole bunch of variable names that designate constants, as those get inlined.

In practice this works OK, since gcc (or any other decent compiler) can detect short lived variables and get rid of them easily. However, it might be nice if we did this automatically for platforms where the compilers may not do these optimizations. (Otherwise, the frames generated for calls will be too large..)

@LeventErkok
Copy link
Owner Author

not necessarily a top concern. If this becomes a real issue, then we might want to generate C through Language.C or some such system for better support for static analysis/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant