common.mak: -Os instead of -O3, smaller bios (<32k)
authorRobert Jordens <jordens@gmail.com>
Sun, 10 Nov 2013 09:50:41 +0000 (10:50 +0100)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Sun, 10 Nov 2013 09:51:05 +0000 (10:51 +0100)
software/common.mak

index 0c8103dea9c1a21ee07ac4a14851dd471596ad96..499e593d17e7d1597773817eb6e9c191189ad968 100644 (file)
@@ -41,7 +41,7 @@ endif
 # Toolchain options
 #
 INCLUDES = -I$(MSCDIR)/software/include/base -I$(MSCDIR)/software/include -I$(MSCDIR)/common
-COMMONFLAGS = -O3 -mbarrel-shift-enabled -mmultiply-enabled -mdivide-enabled -msign-extend-enabled \
+COMMONFLAGS = -Os -mbarrel-shift-enabled -mmultiply-enabled -mdivide-enabled -msign-extend-enabled \
        -Wall -fno-builtin -nostdinc -DGIT_ID=$(GIT_ID) $(INCLUDES)
 CFLAGS = $(COMMONFLAGS) -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes
 CXXFLAGS = $(COMMONFLAGS) -fno-exceptions -ffreestanding