cancel
Showing results for 
Search instead for 
Did you mean: 

Behaviour differences in STMCube32IDE when compiling without optimisation, failing to handle any functions declared as inline unless made static

Robmar
Senior III

There are still behaviour differences in the latest STMCube32IDE when compiling without optimisation O0, as it is failing to compile any functions declared as inline unless made static. Using O2 optimisation this does not happen and it compiles.

Also if switching to the full C standard compiler from reduce C nano compiler, there is no substitute for the assert macro.

2 REPLIES 2
Pavel A.
Evangelist III

What is the "assign macro"?

How inline functions fail for you?

There is no such thing as "nano compiler". What is the toolchain version in use, and which C standard level?


_legacyfs_online_stmicro_images_0693W00000bktdEQAQ.png
_legacyfs_online_stmicro_images_0693W00000bktkdQAA.png 

Robmar
Senior III

Sorry, that should have been the assert macro, and nano.specs Runtime library.

Version: 1.12.1 doesn´t show Language standards under general, the interface is different.

I had a look for this but could not see it, there is only two options under the MCU settings, Standard C or nano.specs runtime.

Toolchain is set to 10.3-2021.10