Compiler switches for ARM

Moderators: dhowells, RobertKleczek

Compiler switches for ARM

Postby sjw » Mon Jun 22, 2015 4:35 pm

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.
sjw
 
Posts: 3
Joined: Thu Mar 19, 2015 9:48 pm

Return to Architecture Specific

Who is online

Users browsing this forum: No registered users and 1 guest

cron