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
Support for computed goto #874
Conversation
This is a GCC extension that allows C to use fast jump tables.
This looks like a rather complex change to me - and I don't understand it's importance.
@greg-king5: I'd appreciate your opinion!
|
Will fix the missing spaces, thanks. As mentioned in #864, it allows efficient jump tables from C. A switch-case or a cascade of ifs can take 30x or more cpu vs what a jump table jump takes, and it also changes the timing from variable to constant. As a plus, it's also smaller than the alternatives. |
Isn't that what the Error does? Stops execution since we can't compile this. |
|
|
I checked the source; it's only fatal after a few errors, my mistake, I remembered it was fatal instantly. |
|
About the "only for jumps" message, expanding it slightly: |
…s, and test for static
|
Maybe a hint in |
Now with the docs addition I get it... @greg-king5: Thanks for your review! As far as I can see this pr is ready to be merged from your pov, right? In that case please either acknowledge or merge right away. @polluks: Thanks for the hint on the docs. |
Those advantages are useful especially when making game animations. Merging ... |
Depends on #873, and includes those commits so that the autobuilder will succeed.
Closes #864.
The text was updated successfully, but these errors were encountered: