Skip to content

Comments

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

Merged
devanlai merged 1 commit intodevanlai:masterfrom
dmsc:use-lto
Apr 19, 2020
Merged

Use link-time-optimization in the build.#22
devanlai merged 1 commit intodevanlai:masterfrom
dmsc:use-lto

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