source: rtems/c/src/lib/libbsp/powerpc/virtex5/make/custom/virtex5.cfg @ 82bf2773

5
Last change on this file since 82bf2773 was 82bf2773, checked in by Ralph Holmes <ralph@…>, on 01/23/16 at 18:40:43

powerpc/virtex5: Add per-section compilation and linking support.

The size of the sample executables without this option were:

text data bss dec hex filename

117297 9206 6797 133300 208b4 base_sp.exe
133249 8030 6757 148036 24244 hello.exe

51473 5066 3217 59756 e96c minimum.exe

568081 80530 19053 667664 a3010 fileio.exe
140193 10950 6901 158044 2695c nsecs.exe
206113 21330 7465 234908 3959c paranoia.exe
120465 9374 6829 136668 215dc ticker.exe
119665 9390 10573 139628 2216c unlimited.exe
883345 198988 14433 1096766 10bc3e cxx_iostream.exe
225057 26914 7469 259440 3f570 cdtest.exe
221937 23050 8625 253612 3deac capture.exe

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

text data bss dec hex filename

105569 7804 6777 120150 1d556 base_sp.exe
119025 6596 6729 132350 204fe hello.exe

40177 3720 3197 47094 b7f6 minimum.exe

546465 77136 18773 642374 9cd46 fileio.exe
129217 9526 6881 145624 238d8 nsecs.exe
193617 19908 7441 220966 35f26 paranoia.exe
108993 7972 6809 123774 1e37e ticker.exe
106129 7884 10545 124558 1e68e unlimited.exe
554997 38836 13621 607454 944de cxx_iostream.exe
215193 17384 7449 240026 3a99a cdtest.exe
207809 21400 8605 237814 3a0f6 capture.exe

  • Property mode set to 100644
File size: 574 bytes
Line 
1include $(RTEMS_ROOT)/make/custom/default.cfg
2
3RTEMS_CPU=powerpc
4RTEMS_CPU_MODEL=ppc440
5
6#  This contains the compiler options necessary to select the CPU model
7#  and (hopefully) optimize for it.
8#
9CPU_CFLAGS = -mcpu=440 -Dppc440 -msoft-float
10
11# optimize flag: typically -O2
12CFLAGS_OPTIMIZE_V = -O2 -g -fno-keep-inline-functions
13CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
14
15LDFLAGS = -Wl,--gc-sections
16
17# Miscellaneous additions go here
18define bsp-post-link
19        $(default-bsp-post-link)
20        $(OBJCOPY) -O srec $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT)
21endef
22
Note: See TracBrowser for help on using the repository browser.