source: rtems/c/src/lib/libbsp/m68k/csb360/make/custom/csb360.cfg @ 8d8d5b48

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

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

The size of the sample executables without this option were:

text data bss dec hex filename

87040 1728 7824 96592 17950 base_sp.exe
96176 1696 7424 105296 19b50 hello.exe
30672 1280 3888 35840 8c00 minimum.exe

559904 5632 19312 584848 8ec90 fileio.exe
106144 1808 7936 115888 1c4b0 nsecs.exe
180688 2096 8416 191200 2eae0 paranoia.exe

90784 1728 7856 100368 18810 ticker.exe
89248 1760 11264 102272 18f80 unlimited.exe

835456 21520 14896 871872 d4dc0 cxx_iostream.exe
186336 2144 7968 196448 2ff60 cdtest.exe
180544 2224 9648 192416 2efa0 capture.exe

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

text data bss dec hex filename

78496 1648 7760 87904 15760 base_sp.exe
86560 1600 7344 95504 17510 hello.exe
23360 1184 3840 28384 6ee0 minimum.exe

542624 5568 18976 567168 8a780 fileio.exe

98752 1744 7872 108368 1a750 nsecs.exe

171792 2032 8368 182192 2c7b0 paranoia.exe

83040 1648 7792 92480 16940 ticker.exe
79984 1664 11184 92832 16aa0 unlimited.exe

162128 2112 7616 171856 29f50 cxx_iostream.exe
169856 2048 7888 179792 2be50 cdtest.exe
169904 2128 9584 181616 2c570 capture.exe

  • Property mode set to 100644
File size: 469 bytes
Line 
1#
2#  Config file for a Cogent CSB360
3#
4#  Author: Jay Monkman <jtm@lopingdog.com>
5#
6
7RTEMS_CPU=m68k
8RTEMS_CPU_MODEL=mcf5272
9
10include $(RTEMS_ROOT)/make/custom/default.cfg
11
12# This contains the compiler options necessary to select the CPU model
13# and (hopefully) optimize for it.
14CPU_CFLAGS = -mcpu=5272
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
Note: See TracBrowser for help on using the repository browser.