Skip to content

Make generated C code and icode simpler #72

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

Closed
JukkaL opened this issue Jan 29, 2013 · 1 comment
Closed

Make generated C code and icode simpler #72

JukkaL opened this issue Jan 29, 2013 · 1 comment
Labels

Comments

@JukkaL
Copy link
Collaborator

JukkaL commented Jan 29, 2013

Currently the generated C code is very verbose. It should be simpler. This would make the code easier to read and debug.

Here are some ideas:
- Add single icode opcode for return None.
- Remove unnecessary gotos to the next label.
- Use macros for common int operations (inline functions might degrade efficiency).
- Use macros/inline functions for calls with 1..4 arguments, for example.
- Simplify function prolog code.

@JukkaL
Copy link
Collaborator Author

JukkaL commented Jul 25, 2014

Closing this as the C back end is no longer being developed.

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

No branches or pull requests

1 participant