Changeset f40f86d in rtems


Ignore:
Timestamp:
Nov 30, 2018, 7:01:50 PM (5 months ago)
Author:
Shashvat Jain <shashvatjain2002@…>
Branches:
master
Children:
e3086c9c
Parents:
c056f21
git-author:
Shashvat Jain <shashvatjain2002@…> (11/30/18 19:01:50)
git-committer:
Joel Sherrill <joel@…> (11/30/18 20:09:35)
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bsps/powerpc/haleakala/config/haleakala.cfg

    rc056f21 rf40f86d  
    1818CFLAGS_OPTIMIZE_V = -O1 -g
    1919
    20 # FIXME: Disabled because linkcmds lacks proper KEEP() directives. See #2561.
    2120# The following two lines enable compiling and linking on per element.
    22 # CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
    23 # LDFLAGS = -Wl,--gc-sections
     21CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
     22LDFLAGS = -Wl,--gc-sections
    2423
    2524define bsp-post-link
Note: See TracChangeset for help on using the changeset viewer.