Skip to content

Use libgcc.a compiled with -Os instead of the default -O2 on boards that are tight on space #4705

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

Closed
dhalbert opened this issue May 3, 2021 · 3 comments
Assignees
Milestone

Comments

@dhalbert
Copy link
Collaborator

dhalbert commented May 3, 2021

The official ARM gcc toolchain compiles libgcc.a as -O2. The arch Linux ARM toolchain uses -Os. We discovered that building on arch saved a kB or two (at least).

We can consider replacing the stock libgcc.a in the ARM toolchain with a -Os version to make room on the smallest boards for new features.

@dhalbert dhalbert added this to the Long term milestone May 3, 2021
@dhalbert dhalbert self-assigned this Sep 13, 2021
@tannewt
Copy link
Member

tannewt commented Mar 8, 2022

@dhalbert You look into this a bit right? What did you run into?

@dhalbert
Copy link
Collaborator Author

dhalbert commented Mar 8, 2022

I tried to build libgcc.a as part of building the ARM gcc toolchain from their supplied sources, so I could then change libgccs build flags and make sure I got a library that would be cleanly substitutable. Despite following the directions carefully, I was unable to get the toolchain to build far enough to build that library. I think I tried this twice. Perhaps it will be easier with the 11.2 sources

@tannewt
Copy link
Member

tannewt commented Mar 8, 2022

I know that they changed the way they build their archive. I think they use Linode CI now. (I saw the info on the embedded.fm slack.)

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

No branches or pull requests

2 participants