source: rtems/c/src/lib/libbsp/mips/rbtx4925/make/custom/rbtx4925.cfg @ 5ebdd289

5
Last change on this file since 5ebdd289 was 5ebdd289, checked in by Ralph Holmes <ralph@…>, on Jan 21, 2016 at 2:19:25 PM

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

The size of the sample executables without this option were:

text data bss dec hex filename

105752 7448 12288 125488 1ea30 base_sp.exe
114212 6464 11904 132580 205e4 hello.exe

64844 4248 8592 77684 12f74 minimum.exe

568632 80292 24664 673588 a4734 fileio.exe
128056 9936 12456 150448 24bb0 nsecs.exe
162664 20132 12960 195756 2fcac paranoia.exe
109768 8300 12336 130404 1fd64 ticker.exe
109816 7676 15728 133220 20864 unlimited.exe

1035520 48120 19681 1103321 10d5d9 cxx_iostream.exe

215960 18520 12593 247073 3c521 cdtest.exe
205608 22188 14164 241960 3b128 capture.exe

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

text data bss dec hex filename

93688 6776 12216 112680 1b828 base_sp.exe
99720 5780 11804 117304 1ca38 hello.exe
40888 3208 8496 52592 cd70 minimum.exe

545656 77224 24110 646990 9df4e fileio.exe
117752 9224 12304 139280 22010 nsecs.exe
149992 19428 12848 182268 2c7fc paranoia.exe

98968 7616 12184 118768 1cff0 ticker.exe
95912 6976 15636 118524 1cefc unlimited.exe

530504 38896 18721 588121 8f959 cxx_iostream.exe
199040 16492 12517 228049 37ad1 cdtest.exe
190856 21160 14000 226016 372e0 capture.exe

  • Property mode set to 100644
File size: 647 bytes
Line 
1#
2#  Config file for the Toshiba RBTX4925 evaluation board with TX4925 cpu
3#
4
5include $(RTEMS_ROOT)/make/custom/default.cfg
6
7RTEMS_CPU_MODEL=tx4925
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.