Code sizes GCC 10.3 vs 11.3

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderators: RoccoMarco, barthess

steved
Posts: 825
Joined: Fri Nov 09, 2012 2:22 pm
Has thanked: 12 times
Been thanked: 135 times

Code sizes GCC 10.3 vs 11.3

Postby steved » Mon Apr 03, 2023 2:11 pm

Just a comment; I've noticed on a couple of programs that code size generated by GCC 11.3 is significantly larger than for 10.3:

1) Optimisation -Og - 10.3: 776824B - 11.3: 810976B - 4.4% larger
2) Optimisation -O0 - 10.3: 164608B - 11.3: 193096B - 17% larger

These were on Chibi 21.11.3

User avatar
Giovanni
Site Admin
Posts: 14461
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1077 times
Been thanked: 922 times
Contact:

Re: Code sizes GCC 10.3 vs 11.3

Postby Giovanni » Mon Apr 03, 2023 2:37 pm

Hi,

Those are debug settings, perhaps they made (un)optimization changes to make debug easier, I would compare under -Os, that would demonstrate a code size regression.

Giovanni


Return to “STM32 Support”

Who is online

Users browsing this forum: Baidu [Spider] and 12 guests