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

[features] Add feature for Oz minsize opt level #40

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

sasdf
Copy link
Contributor

@sasdf sasdf commented Dec 12, 2024

When enabling LTO, Oz is required to have a smaller firmware size.

This PR adds the "minsize" feature, which will be enabled along with LTO on some ROM_EXT targets through bazel transition.

In our tests with ROM_EXT on the master branch,

  • Os + LTO ~ +2,904 bytes
  • Oz ~ -1,260 bytes
  • Oz + LTO ~ -1,640 bytes

When enabling LTO, Oz is required to have a smaller firmware size.

This PR adds the "minsize" feature, which will be enabled along with LTO
on some ROM_EXT targets through bazel transition.

In our tests with ROM_EXT on the master branch,
* Os + LTO ~ +2,904 bytes
* Oz - LTO ~ -1,260 bytes
* Oz  + LTO ~ -1,640 bytes

Change-Id: I141284b331b9760fb25f690bba4c10b02057f13f
Signed-off-by: Yi-Hsuan Deng <[email protected]>
@timothytrippel timothytrippel merged commit a63989d into lowRISC:main Dec 13, 2024
1 check passed
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