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

Use link-time-optimization in the build. #22

Merged
merged 1 commit into from
Apr 19, 2020
Merged

Conversation

dmsc
Copy link
Contributor

@dmsc dmsc commented Apr 17, 2020

Using gcc-arm-none-eabi-9-2019-q4-major this gives a bootloader binary
about 900 bytes smaller.

The resulting binary was tested on a blue-pill board: entering the bootloader, reading flash and writing flash all worked ok.

Using gcc-arm-none-eabi-9-2019-q4-major this gives a bootloader binary
about 900 bytes smaller.
@devanlai
Copy link
Owner

This looks good to me - I could never figure out how to get LTO working with locm3. I tested it on my bluepill board and an STLink/v2 clone and it seems to work fine on both.

@devanlai devanlai merged commit 3c5a855 into devanlai:master Apr 19, 2020
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