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

Static Optimizations: Boolean Operators #70

Open
CodyFagley opened this issue Apr 9, 2021 · 0 comments
Open

Static Optimizations: Boolean Operators #70

CodyFagley opened this issue Apr 9, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@CodyFagley
Copy link
Member

Currently, if an Xita developer uses a boolean truth (a boolean expression that always returns True or False) such as the following stub, it does the full calculation dynamically in assembly.

1 && 2
3 || 0

This behavior is no good, because there is NEVER a situation where the above code isn't the same as the following:

True
True

Boolean truths should be calculated and optimized into their final resting value within the Xita cross-compiler backend.

@CodyFagley CodyFagley added the enhancement New feature or request label Apr 9, 2021
@CodyFagley CodyFagley changed the title Static Optimizations: Boolean Operations Static Optimizations: Boolean Operators Apr 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant