Hi, This patch adds the /opt:ref linker option to Make_mvc.mak in order to reduce the size of the executable. This option is enabled by default for release builds, however, we use the /DEBUG option even for the release builds, and this disables the /opt:ref option. So we need to use this option explicitly. See: https://msdn.microsoft.com/en-us/library/bxwfs976.aspx
This reduces the size about 100KB on 32-bit HUGE version. P.S. MinGW also has a similar feature: CFLAGS: -fdata-sections -ffunction-sections LDFLAGS: -Wl,--gc-sections But I haven't tried this. Regards, Ken Takata -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
# HG changeset patch # Parent abac550bd9d58fcf1ad5fbb978ac57364339bf79 diff --git a/src/Make_mvc.mak b/src/Make_mvc.mak --- a/src/Make_mvc.mak +++ b/src/Make_mvc.mak @@ -1160,7 +1160,7 @@ LINK_PDB = /PDB:$(VIM).pdb -debug # CFLAGS with /Fo$(OUTDIR)/ CFLAGS_OUTDIR=$(CFLAGS) /Fo$(OUTDIR)/ -conflags = /nologo /subsystem:$(SUBSYSTEM) +conflags = /nologo /subsystem:$(SUBSYSTEM) /opt:ref PATHDEF_SRC = $(OUTDIR)\pathdef.c