source: rtems/bsps/powerpc/haleakala/config/haleakala.cfg @ 3c78e93

Last change on this file since 3c78e93 was f40f86d, checked in by Shashvat Jain <shashvatjain2002@…>, on 11/30/18 at 19:01:50

powerpc/haleakala: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

104144 1316 16112 121572 1dae4 ./base_sp.exe
263120 2424 19356 284900 458e4 ./capture.exe
315012 2300 17184 334496 51aa0 ./cdtest.exe

1103896 2350 23988 1130234 113efa ./cxx_iostream.exe

654832 4986 29400 689218 a8442 ./fileio.exe
143328 1664 16264 161256 275e8 ./hello.exe
329540 6228 23096 358864 579d0 ./loopback.exe

80264 1124 12868 94256 17030 ./minimum.exe

133600 1832 16216 151648 25060 ./nsecs.exe
215024 2096 16904 234024 39228 ./paranoia.exe
571768 12532 46100 630400 99e80 ./pppd.exe
107872 1340 16148 125360 1e9b0 ./ticker.exe
107856 1308 20008 129172 1f894 ./unlimited.exe

The size of the sample executables with this option were:

text data bss dec hex filename

612124 2106 22800 637030 9b866 ./cxx_iostream.exe
641180 4986 29104 675270 a4dc6 ./fileio.exe
132316 1664 16228 150208 24ac0 ./hello.exe
309544 6212 23028 338784 52b60 ./loopback.exe

74028 1108 12804 87940 15784 ./minimum.exe

125372 1836 16148 143356 22ffc ./nsecs.exe
204556 2088 16868 223512 36918 ./paranoia.exe
555528 12540 46032 614100 95ed4 ./pppd.exe
101548 1356 16052 118956 1d0ac ./ticker.exe
105916 1284 19976 127176 1f0c8 ./unlimited.exe

98268 1300 16016 115584 1c380 ./base_sp.exe

246364 2404 19320 268088 41738 ./capture.exe
229184 1836 17148 248168 3c968 ./cdtest.exe

Closes #2561

  • Property mode set to 100644
File size: 712 bytes
Line 
1#
2#  Config file for a PowerPC 405 based card
3#  mhamel
4#
5
6include $(RTEMS_ROOT)/make/custom/default.cfg
7
8RTEMS_CPU=powerpc
9
10#  This contains the compiler options necessary to select the CPU model
11#  and (hopefully) optimize for it.
12#
13CPU_CFLAGS = -mcpu=405
14
15# optimize flag: typically -0, could use -O4 or -fast
16# -O4 is ok for RTEMS
17# NOTE: some level of -O may be actually required by inline assembler
18CFLAGS_OPTIMIZE_V = -O1 -g
19
20# The following two lines enable compiling and linking on per element.
21CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
22LDFLAGS = -Wl,--gc-sections
23
24define bsp-post-link
25        $(default-bsp-post-link)
26        $(OBJCOPY) -O srec $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT)
27endef
Note: See TracBrowser for help on using the repository browser.