arduino / arduino/ArduinoCore-avr

Optimization fix: -freorder-blocks compiler option

Open
#259 3 comments 0 reactions 1 assignee Assigned to @aentinger View on GitHub
Dominant language
C
Stars
1.5k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

Adding -freorder-blocks to the compile options fixes a random crash problem I was having with a large project. It does not increase the code size all that much when enabled... on average 200 to 400 bytes of flash are consumed on a large project.

It is obvious that -Os by its self can in some cases generate bad code, and this is an acceptable tradeoff. i.e. works, instead of banging your head on the desk wasting time trying to find out why your code is broken, when it isn't.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.