Skip to content

Performance Optimization: Using Thumb Mode #34

@AngelTomkins

Description

@AngelTomkins

Currently all the code is stored in main ram, and the arm9 core stalls when the arm7 core is reading from main ram. If the code was compiled in Thumb mode (and possibly with size optimizations, -Os/-Oz) it could require fewer ram accesses to execute the same code, and therefore reduce the performance hit from the low main ram and the audio. From testing I the code size seems to shrink to about 60% of the original size using thumb and -Os. I did not notice a significant change in performance, but did not perform the most detailed of tests, importantly this did not slow down the program at all. This would be a simple change to the Makefile.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions