Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/distrib/dreamcast/ramdisk Try to shrink ramdiskbin binary.



details:   https://anonhg.NetBSD.org/src/rev/74c55635622c
branches:  trunk
changeset: 957410:74c55635622c
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sat Nov 28 05:16:06 2020 +0000

description:
Try to shrink ramdiskbin binary.

-Os
-rwxr-xr-x  1 tsutsui  wheel  1371212 Nov 28 14:09 obj.dreamcast/ramdiskbin*

-Os -fno-unwind-tables
-rwxr-xr-x  1 tsutsui  wheel  1366000 Nov 28 14:10 obj.dreamcast/ramdiskbin*

-Os -fno-unwind-tables -DNDEBUG
-rwxr-xr-x  1 tsutsui  wheel  1359700 Nov 28 14:11 obj.dreamcast/ramdiskbin*

diffstat:

 distrib/dreamcast/ramdisk/Makefile |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 0e274d610a45 -r 74c55635622c distrib/dreamcast/ramdisk/Makefile
--- a/distrib/dreamcast/ramdisk/Makefile        Fri Nov 27 22:32:43 2020 +0000
+++ b/distrib/dreamcast/ramdisk/Makefile        Sat Nov 28 05:16:06 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.15 2019/12/29 18:26:17 christos Exp $
+#      $NetBSD: Makefile,v 1.16 2020/11/28 05:16:06 tsutsui Exp $
 
 .include <bsd.own.mk>
 .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
@@ -8,7 +8,8 @@
 MAKEFS_FLAGS+= -f 15
 
 WARNS=         1
-DBG=           -Os
+DBG=           -Os -fno-unwind-tables
+DBG+=          -DNDEBUG                # to remove assert(3) macro
 
 CRUNCHBIN=     ramdiskbin
 LISTS=         ${.CURDIR}/list # ${DISTRIBDIR}/common/list.sysinst



Home | Main Index | Thread Index | Old Index