source: rtems/c/src/lib/libbsp/m68k/mcf5329/make/custom/mcf5329.cfg @ 516dab50

5
Last change on this file since 516dab50 was 516dab50, checked in by Ralph Holmes <ralph@…>, on 01/23/16 at 02:07:35

m68k/mcf5329: Add per-section compilation and linking support.

The size of the sample executables without this option were:

text data bss dec hex filename

96854 1680 10554 109088 1aa20 base_sp.exe

110310 1648 10106 122064 1dcd0 hello.exe

34438 1232 4922 40592 9e90 minimum.exe

574374 5584 22042 602000 92f90 fileio.exe
115542 1760 10666 127968 1f3e0 nsecs.exe
196470 2048 11162 209680 33310 paranoia.exe
100582 1680 10586 112848 1b8d0 ticker.exe

98598 1712 13946 114256 1be50 unlimited.exe

868902 21952 17610 908464 ddcb0 cxx_iostream.exe
204726 2272 10730 217728 35280 cdtest.exe
198278 2176 12378 212832 33f60 capture.exe

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

text data bss dec hex filename

88646 1648 10506 100800 189c0 base_sp.exe

100502 1600 10042 112144 1b610 hello.exe

25302 1184 4874 31360 7a80 minimum.exe

556838 5568 21722 584128 8e9c0 fileio.exe
107830 1744 10602 120176 1d570 nsecs.exe
187926 2032 11098 201056 31160 paranoia.exe

92534 1648 10522 104704 19900 ticker.exe
89014 1664 13882 104560 19870 unlimited.exe

179254 2192 10330 191776 2ed20 cxx_iostream.exe
188294 2144 10650 201088 31180 cdtest.exe
188070 2128 12330 202528 31720 capture.exe

  • Property mode set to 100644
File size: 694 bytes
Line 
1#
2#  Config file for the mcf5329 BSP
3#
4
5
6RTEMS_CPU=m68k
7RTEMS_CPU_MODEL=mcf532x
8
9include $(RTEMS_ROOT)/make/custom/default.cfg
10
11#  This contains the compiler options necessary to select the CPU model
12#  and (hopefully) optimize for it.
13#CPU_CFLAGS = -mcpu=5329
14CPU_CFLAGS = -mcpu=5307
15
16# optimize flag: typically -O2
17CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer
18CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
19
20LDFLAGS = -Wl,--gc-sections
21
22# This defines the operations performed on the linked executable.
23# is currently required.
24define bsp-post-link
25        $(OBJCOPY) -O binary --strip-all \
26            $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT)
27        $(SIZE) $(basename $@)$(EXEEXT)
28endef
Note: See TracBrowser for help on using the repository browser.