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

Add new compiler and linker flags to platformio.ini #72

Merged
merged 3 commits into from
May 21, 2024

Conversation

Charles-Mahoudeau
Copy link
Member

The commit introduces two new flags - -flto and -Wl,-allow-multiple-definition,--stack,16777216 for compilation and linking processes. This is aimed at optimizing the program efficiency and handling potential issues with stack size and multiple definitions.

The commit introduces two new flags - `-flto` and `-Wl,-allow-multiple-definition,--stack,16777216` for compilation and linking processes. This is aimed at optimizing the program efficiency and handling potential issues with stack size and multiple definitions.
The flto flags have been removed from the platformio.ini file. This change was made to both sections within the file. This removal may potentially impact the optimization of the final binary, and as such, testing should be conducted to ensure consistent behavior.
The -Os flag has been added into the PlatformIO configuration file (platformio.ini). This flag aims to optimize the code for size, instructing the compiler to prefer size optimizations over speed optimizations.
@Charles-Mahoudeau Charles-Mahoudeau added the bug Something isn't working label May 21, 2024
@Charles-Mahoudeau Charles-Mahoudeau requested a review from b5i May 21, 2024 20:18
@Charles-Mahoudeau Charles-Mahoudeau merged commit d7e25c5 into main May 21, 2024
4 checks passed
@Charles-Mahoudeau Charles-Mahoudeau deleted the fix/mingw-compilation-error branch May 21, 2024 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant