Page 1 of 1

Compiler switches for ARM

PostPosted: Mon Jun 22, 2015 4:35 pm
by sjw
GNAT GPL 2015 for arm-elf on Linux was configured with --with-arch=armv7; the chip-specific switches are set in runtime.xml in the RTS,
Code: Select all
   package Compiler is
      Common_Required_Switches := ("-mlittle-endian", "-mhard-float",
        "-mcpu=cortex-m4", "-mfpu=fpv4-sp-d16", "-mthumb");

This seems to work just fine for STM32F429-DISCO, but I was wondering where to find the correct switches for other variants? The MCUs they support in that runtime.xml are STM32F4-DISCO, STM32F429-DISCO, STM32F7-EVAL.