summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authordavygrvy <davygrvy@pobox.com>2002-02-21 18:37:27 (GMT)
committerdavygrvy <davygrvy@pobox.com>2002-02-21 18:37:27 (GMT)
commit684fff1b76d025b0bc8604b9afeffd894b587276 (patch)
tree73455424bfd8ff14c89dd77a202370b8b6b5a370 /win
parentbab9941ca86ab7fdba468681e54463cef336db5d (diff)
downloadtcl-684fff1b76d025b0bc8604b9afeffd894b587276.zip
tcl-684fff1b76d025b0bc8604b9afeffd894b587276.tar.gz
tcl-684fff1b76d025b0bc8604b9afeffd894b587276.tar.bz2
* win/makefile.vc:
* win/rules.vc: Added a new "loimpact" option that sets the -ws:aggressive linker option. Off by default. It's said to keep the heap use low at the expense of alloc speed.
Diffstat (limited to 'win')
-rw-r--r--win/makefile.vc11
-rw-r--r--win/rules.vc11
2 files changed, 17 insertions, 5 deletions
diff --git a/win/makefile.vc b/win/makefile.vc
index 302657b..d18b28d 100644
--- a/win/makefile.vc
+++ b/win/makefile.vc
@@ -12,7 +12,7 @@
# Copyright (c) 2001 Tomasoft Engineering.
#
#------------------------------------------------------------------------------
-# RCS: @(#) $Id: makefile.vc,v 1.81 2002/02/20 19:06:53 davygrvy Exp $
+# RCS: @(#) $Id: makefile.vc,v 1.82 2002/02/21 18:37:27 davygrvy Exp $
#------------------------------------------------------------------------------
!if "$(MSVCDIR)" == ""
@@ -78,6 +78,8 @@ the environment. Jump to this line to read the new instructions.
# threads = Turns on full multithreading support.
# symbols = Adds symbols for step debugging.
# profile = Adds profiling hooks. Map file is assumed.
+# loimpact= Adds a flag for how NT treats the heap to keep memory
+# in use low. This is said to impact performance.
#
# STATS=memdbg,compdbg,none
# Sets optional memory and bytecode compiler debugging code added
@@ -373,12 +375,15 @@ lflags = $(lflags) -opt:nowin98
lflags = $(lflags) -align:4096
!endif
+!if $(LOIMPACT)
+lflags = $(lflags) -ws:aggressive
+!endif
+
dlllflags = $(lflags) -dll
conlflags = $(lflags) -subsystem:console
guilflags = $(lflags) -subsystem:windows
baselibs = kernel32.lib advapi32.lib user32.lib
-winlibs = $(baselibs) gdi32.lib
#---------------------------------------------------------------------
@@ -427,7 +432,7 @@ $(TCLLIB): $(TCLOBJS)
$**
<<
!else
- $(link32) $(dlllflags) -out:$@ $(winlibs) @<<
+ $(link32) $(dlllflags) -out:$@ $(baselibs) @<<
$**
<<
-@del $*.exp
diff --git a/win/rules.vc b/win/rules.vc
index 016b4ee..00e4255 100644
--- a/win/rules.vc
+++ b/win/rules.vc
@@ -10,7 +10,7 @@
# Copyright (c) 2001 Tomasoft Engineering.
#
#------------------------------------------------------------------------------
-# RCS: @(#) $Id: rules.vc,v 1.5 2002/02/20 19:06:54 davygrvy Exp $
+# RCS: @(#) $Id: rules.vc,v 1.6 2002/02/21 18:37:27 davygrvy Exp $
#------------------------------------------------------------------------------
!ifndef _RULES_VC
@@ -100,6 +100,7 @@ TCL_THREADS = 0
DEBUG = 0
PROFILE = 0
MSVCRT = 0
+LOIMPACT = 0
TCL_LINKWITHEXTENSIONS = 0
!else
!if ![echo $(OPTS) | find /i "static" > nul]
@@ -138,13 +139,19 @@ PROFILE = 1
!else
PROFILE = 0
!endif
+!if ![echo $(OPTS) | find /i "loimpact" > nul]
+!message *** Doing loimpact
+LOIMPACT = 1
+!else
+LOIMPACT = 0
+!endif
!endif
!if !$(STATIC_BUILD)
# Make sure we don't build overly fat DLLs.
MSVCRT = 1
-# Shouldn't statically put the extensions inside the shell when dynamic.
+# We shouldn't statically put the extensions inside the shell when dynamic.
TCL_LINKWITHEXTENSIONS = 0
!endif