source: rtems/c/src/lib/libbsp/mips/hurricane/make/custom/hurricane.cfg @ 12bc6c5

5
Last change on this file since 12bc6c5 was 12bc6c5, checked in by Ralph Holmes <ralph@…>, on Jan 20, 2016 at 8:48:55 PM

mips/hurricane: Add per-section compilation and linking support.

The size of the sample executables without this option were:

text data bss dec hex filename

107080 7480 11888 126448 1edf0 base_sp.exe
114164 6464 11440 132068 203e4 hello.exe

64796 4248 8192 77236 12db4 minimum.exe

569960 80320 24264 674544 a4af0 fileio.exe
129384 9968 12056 151408 24f70 nsecs.exe
163992 20160 12560 196712 30068 paranoia.exe
111096 8332 11936 131364 20124 ticker.exe
109768 7676 15328 132772 206a4 unlimited.exe

1035472 48120 19281 1102873 10d419 cxx_iostream.exe

217288 18556 12193 248037 3c8e5 cdtest.exe
206936 22216 13780 242932 3b4f4 capture.exe

The size of the sample executables with this option enabled were:

text data bss dec hex filename

95016 6808 11748 113572 1bba4 base_sp.exe
99688 5780 11384 116852 1c874 hello.exe
40856 3208 8076 52140 cbac minimum.exe

546984 77256 23706 647946 9e30a fileio.exe
119080 9256 11900 140236 223cc nsecs.exe
151320 19460 12444 183224 2cbb8 paranoia.exe
100296 7648 11780 119724 1d3ac ticker.exe

95880 6976 15216 118072 1cd38 unlimited.exe

530472 38896 18365 587733 8f7d5 cxx_iostream.exe
200368 16524 12113 229005 37e8d cdtest.exe
192184 21192 13596 226972 3769c capture.exe

  • Property mode set to 100644
File size: 663 bytes
Line 
1#
2#  Config file for the Quick Logic Hurricane evaluation board with PMC-Sierra RM5231 cpu
3#
4
5include $(RTEMS_ROOT)/make/custom/default.cfg
6
7RTEMS_CPU_MODEL=rm5231
8
9#  This contains the compiler options necessary to select the CPU model
10#  and (hopefully) optimize for it.
11CPU_CFLAGS = -mips3 -G0 -EL
12
13# optimize flag: typically -O2
14CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer
15CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
16
17LDFLAGS = -Wl,--gc-sections
18
19define bsp-post-link
20        $(OBJCOPY) -O srec $@ $(basename $@).srec1
21        $(PACKHEX) < $(basename $@).srec1 > $(basename $@)$(DOWNEXT)
22        $(RM) $(basename $@).srec1
23        $(default-bsp-post-link)
24endef
Note: See TracBrowser for help on using the repository browser.