Skip to content

Added LTO flags #451

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
wants to merge 0 commits into from
Closed

Added LTO flags #451

wants to merge 0 commits into from

Conversation

sej7278
Copy link
Collaborator

@sej7278 sej7278 commented Sep 8, 2016

LTO functionality was added in IDE 1.6.10 to provide smaller sizes and faster code (and apparently build times). See issue #446

Will also work with ide 1.0.x as long as you have avr-gcc toolchain > 4.8 (e.g. debian/ubuntu)

On a nano328 for example:

Blink without LTO patch (HEAD):

Program:    1112 bytes (3.4% Full)
(.text + .data + .bootloader)

Data:         11 bytes (0.5% Full)
(.data + .bss + .noinit)

Blink with LTO patch:

Program:     946 bytes (2.9% Full)
(.text + .data + .bootloader)

Data:          9 bytes (0.4% Full)
(.data + .bss + .noinit)

This is only relevant to AVR.

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