source: rtems/bsps/m68k/mcf5225x/config/mcf5225x.cfg @ 9c4dc7b0

Last change on this file since 9c4dc7b0 was 9c4dc7b0, checked in by Shashvat Jain <shashvatjain2002@…>, on Nov 28, 2018 at 8:07:41 PM

m68k/mcf5225x:Add per-section compilation and linking support(GCI 2018)

The size of the sample executables without this option were:

text data bss dec hex filename

71984 1104 4080 77168 12d70 ./base_sp.exe

201872 2112 8944 212928 33fc0 ./capture.exe
104464 1472 4192 110128 1ae30 ./hello.exe
249584 5984 10864 266432 410c0 ./loopback.exe

40032 304 2768 43104 a860 ./minimum.exe
95360 1584 4208 101152 18b20 ./nsecs.exe

179760 1872 4816 186448 2d850 ./paranoia.exe
432912 12048 35568 480528 75510 ./pppd.exe

74992 1136 4112 80240 13970 ./ticker.exe
74832 1088 7952 83872 147a0 ./unlimited.exe

The size of the sample executables with this option were:

text data bss dec hex filename

67456 1104 4000 72560 11b70 ./base_sp.exe

188272 2096 8912 199280 30a70 ./capture.exe

95536 1472 4160 101168 18b30 ./hello.exe

233568 5984 10784 250336 3d1e0 ./loopback.exe

39264 304 2736 42304 a540 ./minimum.exe
89392 1584 4128 95104 17380 ./nsecs.exe

171120 1872 4784 177776 2b670 ./paranoia.exe
420336 12048 35488 467872 723a0 ./pppd.exe

70208 1136 4032 75376 12670 ./ticker.exe
73152 1088 7920 82160 140f0 ./unlimited.exe

Closes #2568

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