2026-01-07 11:46 PM
Hi!
Was hit by a non-obvious difference between the ARM and ST GCC toolchains.
I installed the following toolchains (from the official ARM and ST websites) in two separate Docker containers.
Their --version outputs are:
ST toolchain
ARM toolchain
Then I compiled a simple main.c using the cyclomatic complexity option:
Results:
ARM GCC 13 reports:
ST GCC 13 accepts the option without any error.
So even though both toolchains report the same GCC version, the ST build includes this option while the ARM reference toolchain does not.
This suggests that there may be additional differences between the two toolchains.
When using both toolchains - or migrating from one to the other - be careful.
Just a heads-up.