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

compiler optimization level #129

Open
sysytwl opened this issue Aug 29, 2024 · 3 comments
Open

compiler optimization level #129

sysytwl opened this issue Aug 29, 2024 · 3 comments

Comments

@sysytwl
Copy link

sysytwl commented Aug 29, 2024

with

build_unflags =
-Os

the size of the app rose from 88% to 95% on s3.

plz also check esp32

thank you

@rtlopez
Copy link
Owner

rtlopez commented Aug 29, 2024

Is this a problem now? The release build is with the -O2 flag. If it'll be necessary, we can reconfigure the partition layout to get the missing space.

@sysytwl
Copy link
Author

sysytwl commented Aug 30, 2024

Sorry, I didn't express myself clearly.
I mean if with unflags Os(small) the size of the app increased. I didn't remove the O2 in the [env]. which means the board configuration may contain an Os by default. Once you remove the Os flag by using the unflag function, the O2(performance) is applied, which causes the app size to increase a bit.
btw, I'm using 8M s3. I've changed the partition table. I have 6.7M space for the log. No issues so far.

@rtlopez
Copy link
Owner

rtlopez commented Aug 30, 2024

Thanks for pointing it out, I'll explore it.

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

No branches or pull requests

2 participants