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

Modern Optimization: Compile math_util as ARM #1932

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AreaZeroArven
Copy link

Because math_util does not branch or write to memory, instead using register, using ARM code instead of THUMB works here for modern compilers. Also no need for -fno-toplevel-reorder because this optimization is safe for this too.

Here is an example:
Screenshot 2023-10-10 at 10 27 47 AM

Because math_util does not branch or write to memory, instead using register, using ARM code instead of THUMB works here. Also no need for -fno-toplevel-reorder because this optimization is safe for this too.
@SBird1337
Copy link
Collaborator

I mean... yes, but I don't think the project's scope is micro optimizing the codebase. This one is especially random since it is only used by one part of the berry crush minigame.

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

Successfully merging this pull request may close these issues.

2 participants