[PATCH 2/2] Changed compiler optimization flag to optimize for size

James Fitzsimons james.fitzsimons at gmail.com
Sat Mar 15 02:33:39 UTC 2014


---
 c/src/lib/libbsp/m68k/mrm332/make/custom/mrm332.cfg | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/c/src/lib/libbsp/m68k/mrm332/make/custom/mrm332.cfg b/c/src/lib/libbsp/m68k/mrm332/make/custom/mrm332.cfg
index bf413b3..de07e73 100644
--- a/c/src/lib/libbsp/m68k/mrm332/make/custom/mrm332.cfg
+++ b/c/src/lib/libbsp/m68k/mrm332/make/custom/mrm332.cfg
@@ -11,8 +11,8 @@ RTEMS_CPU_MODEL=mcpu32
 #  and (hopefully) optimize for it. 
 CPU_CFLAGS = -mcpu=cpu32
 
-# optimize flag: typically -O2
-CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer
+# using optimise for size due to small memory on target board.
+CFLAGS_OPTIMIZE_V = -Os -g -fomit-frame-pointer
 
 define bsp-post-link
 	$(OBJCOPY) -O srec $(basename $@)$(EXEEXT) $(basename $@).srec
-- 
1.8.3.2




More information about the devel mailing list