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

LTO #2169

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

LTO #2169

wants to merge 1 commit into from

Conversation

mark9064
Copy link
Member

@mark9064 mark9064 commented Nov 23, 2024

Based off #867, a compiler upgrade isn't needed anymore and I also simplified the changeset to the minimal needed.

I'm testing it locally now and all seems good so far, but I've only been running it for a few hours.

The original in discussion in #867 regarding why the memory usage has changed is still to be answered - I haven't looked into this yet

Copy link

Build size and comparison to main:

Section Size Difference
text 349324B -25284B
data 920B -28B
bss 63536B 32B

@mark9064 mark9064 added the maintenance Background work label Nov 25, 2024
@mark9064 mark9064 marked this pull request as draft January 26, 2025 00:21
@mark9064
Copy link
Member Author

mark9064 commented Jan 26, 2025

Since more functions get inlined, the stack has to accommodate more local variables at once. Given the increased stack usage of LTO, I think this is may be not such a good idea, as InfiniTime is very RAM limited - moreso than it is flash limited.

This PR works perfectly fine though, so keeping it around as a draft

Edit: Need to collect some actual numbers for memory usage LTO off/on

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

Successfully merging this pull request may close these issues.

1 participant