Testing GDC (GCC 7.1) on Runtime-less ARM Cortex-M

Mike via D.gnu d.gnu at puremagic.com
Wed Jun 28 07:26:20 PDT 2017


On Wednesday, 28 June 2017 at 13:48:54 UTC, Johannes Pfau wrote:

> I guess if archlinux GDC is slow as well this is unlikely the 
> main cause, but did you build your compiler in release mode 
> (--enable-checking=release)?

Thanks, I wasn't aware of that.  I just rebuilt and it brought 
the time down another 25%.

time arm-none-eabi-gdc -c -O3 -nophoboslib -nostdinc 
-nodefaultlibs -nostdlib -fno-emit-moduleinfo -mthumb 
-mcpu=cortex-m4 -Isource/runtime -fno-bounds-check 
-fno-invariants -fno-in -fno-out -ffunction-sections 
-fdata-sections source/gcc/attribute.d source/board/package.d 
source/board/ILI9341.d source/board/lcd.d source/board/spi5.d 
source/board/statusLED.d source/board/random.d 
source/board/ltdc.d source/stm32f42/bus.d source/stm32f42/scb.d 
source/stm32f42/trace.d source/stm32f42/dma2d.d 
source/stm32f42/spi.d source/stm32f42/pwr.d source/stm32f42/rcc.d 
source/stm32f42/rng.d source/stm32f42/nvic.d 
source/stm32f42/mmio.d source/stm32f42/flash.d 
source/stm32f42/gpio.d source/stm32f42/ltdc.d source/main.d -o 
binary/firmware.o

real    1m0.518s
user    0m54.594s
sys     0m2.558s

Mike



More information about the D.gnu mailing list