From da491ec96112646c1dcd83940d0ab81839b8caa2 Mon Sep 17 00:00:00 2001 From: arturo182 Date: Mon, 2 Jul 2018 22:00:04 +0200 Subject: [PATCH] nrf: Save some flash bytes by using extra compile flags Both of these are used in the atsamd port as well. --- ports/nrf/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/nrf/Makefile b/ports/nrf/Makefile index d2a29781d7..e70c016236 100644 --- a/ports/nrf/Makefile +++ b/ports/nrf/Makefile @@ -61,7 +61,7 @@ CFLAGS += -mthumb -mabi=aapcs -fsingle-precision-constant -Wdouble-promotion CFLAGS += -mtune=cortex-m4 -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard CFLAGS += $(INC) -Wall -Werror -ansi -std=gnu99 -nostdlib $(COPT) $(NRF_DEFINES) $(CFLAGS_MOD) CFLAGS += -fno-strict-aliasing -CFLAGS += -fstack-usage +CFLAGS += -fstack-usage -fno-builtin -fshort-enums CFLAGS += -fdata-sections -ffunction-sections CFLAGS += -DNRF5_HAL_H='<$(MCU_VARIANT)_hal.h>' CFLAGS += -D__START=main