Use COPTS="-O2 -fno-reorder-blocks" as defined in sys.mk for userland.

with "-O2":
   text    data     bss     dec     hex filename
2064824   48784   85920 2199528  218fe8 netbsd

with "-O2 -fno-reorder-blocks":
   text    data     bss     dec     hex filename
1842944   48784   85920 1977648  1e2d30 netbsd
This commit is contained in:
tsutsui 2014-07-05 09:16:45 +00:00
parent bb79edc987
commit 27f5dd222d

View File

@ -1,4 +1,4 @@
# $NetBSD: GENERIC,v 1.110 2014/01/01 08:41:52 tsutsui Exp $
# $NetBSD: GENERIC,v 1.111 2014/07/05 09:16:45 tsutsui Exp $
#
# GENERIC machine description file
#
@ -22,7 +22,9 @@ include "arch/luna68k/conf/std.luna68k"
options INCLUDE_CONFIG_FILE # embed config file in kernel binary
#ident "GENERIC-$Revision: 1.110 $"
#ident "GENERIC-$Revision: 1.111 $"
makeoptions COPTS="-O2 -fno-reorder-blocks" # see share/mk/sys.mk
maxusers 8