source: rtems/c/src/lib/libbsp/sh/gensh4/make/custom/gensh4.cfg @ dd642034

5
Last change on this file since dd642034 was dd642034, checked in by Joel Sherrill <joel@…>, on 03/10/16 at 23:03:49

sh/gensh4: Add per-section compilation and linking support

updates #2577.

For the gensh4 BSP variant without this option sample executables
sizes were as follows:

text data bss dec hex filename

75538 10666 7264 93468 16d1c ticker.exe
21810 6166 3008 30984 7908 minimum.exe

424370 69762 20476 514608 7da30 fileio.exe
342538 50782 36468 429788 68edc pppd.exe
150930 23130 10168 184228 2cfa4 capture.exe

90578 11078 7348 109004 1a9cc nsecs.exe

125010 22190 7824 155024 25d90 paranoia.exe
153282 26686 8328 188296 2df88 cdtest.exe

73426 10498 7232 91156 16414 base_sp.exe
75186 10734 11072 96992 17ae0 unlimited.exe
85650 9070 7224 101944 18e38 hello.exe

212390 22942 14556 249888 3d020 loopback.exe

For the gensh4 BSP variant with this option sample executables sizes
were as follows:

text data bss dec hex filename

70418 10214 7228 87860 15734 ticker.exe
14514 4886 2984 22384 5770 minimum.exe

411234 67894 20184 499312 79e70 fileio.exe
309906 43666 35668 389240 5f078 pppd.exe
143074 22414 10132 175620 2ae04 capture.exe

86130 10606 7312 104048 19670 nsecs.exe

118978 21714 7804 148496 24410 paranoia.exe
147778 15814 8292 171884 29f6c cdtest.exe

67890 10042 7196 85128 14c88 base_sp.exe
69010 10254 11036 90300 160bc unlimited.exe
78850 8578 7204 94632 171a8 hello.exe

189586 17346 14392 221324 3608c loopback.exe

  • Property mode set to 100644
File size: 728 bytes
RevLine 
[28f3d203]1#
2# gensh4.cfg
3#
4# default configuration for Hitachi SH7750 board
5#
6# Copyright (C) 2001 OKTET Ltd., St.-Petersburg, Russia
7# Author: Victor V. Vengerov <vvv@oktet.ru>
8
9include $(RTEMS_ROOT)/make/custom/default.cfg
10
11RTEMS_CPU=sh
12RTEMS_CPU_MODEL=sh7750
13
14#  This contains the compiler options necessary to select the CPU model
15#  and (hopefully) optimize for it.
16#
17# Seems to be good without initialisation FPSCR.
18# Also works with SH4_FPSCR_DN bit set.
19#CPU_CFLAGS = -m4-single-only -mfmovd -ml
20#CPU_CFLAGS = -m4-single -ml
21#
22# It works with SH4_FPSCR_PR bit set
23CPU_CFLAGS = -m4 -ml
24
25# optimize flag: typically -O2
[dd642034]26CFLAGS_OPTIMIZE_V = -O2 -g
27CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
28
29LDFLAGS = -Wl,--gc-sections
Note: See TracBrowser for help on using the repository browser.