PlatformIO Community

How to know the exact compiler in use

Hi all,

I would like to know how I can know which compiler platformio is using when it’s compiling for my stm32 nucleo_l432kc with the framework mbed.

I saw that mbed framework provides 2 possible compilers:

  • The ARM compiler
    How can I know what’s in use?

I need to know the exact version because I’m going to write a code that is going to be optimized by the new version of gcc for example but in the older one that is not happening and of course that’s going to change the performance.

I’m working on linux with the vscode editor.

PlatformIO can only handle the GCC type toolchains.

PlatformIO also tells you this at the start of every compilation, with a version-exact reference.

PLATFORM: ST STM32 (12.1.1) > Black STM32F407ZG
HARDWARE: STM32F407ZGT6 168MHz, 128KB RAM, 1MB Flash
DEBUG: Current (stlink) External (blackmagic, cmsis-dap, jlink, stlink)
 - framework-stm32cubef4 1.25.2
 - tool-ldscripts-ststm32 0.1.0
 - toolchain-gccarmnoneeabi 1.70201.0 (7.2.1)