Skip to content

allow to compile morse_cli using lto#3

Open
BrainSlayer wants to merge 1 commit into
MorseMicro:mainfrom
BrainSlayer:main
Open

allow to compile morse_cli using lto#3
BrainSlayer wants to merge 1 commit into
MorseMicro:mainfrom
BrainSlayer:main

Conversation

@BrainSlayer

@BrainSlayer BrainSlayer commented Jun 30, 2026

Copy link
Copy Markdown

this patch will allow to compile morse_cli using lto optimisation since sections will be stripped otherwise or/and reordered and fail to work. stripped binary sizes (using all options, including usb, ftdi, sdio)

original - 219177 bytes
lto - 189225 bytes
lto + mips16 - 149637 bytes

( mips16 + lto : -minterlink-mips16 -mips16 -flto -fwhole-program -flto-partition=none)

this patch will allow to compile morse_cli using lto optimisation since
sections will be stripped otherwise or/and reordered and fail to work.
stripped binary sizes:

original - 219177 bytes
lto - 189225  bytes
lto + mips16 - 149637 bytes

( mips16 + lto : -minterlink-mips16 -mips16 -flto -fwhole-program -flto-partition=none)

Signed-off-by: Sebastian Gottschall <s.gottschall@dd-wrt.com>
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.

1 participant