From: Gurusamy Sarathy Date: Mon, 22 Apr 2002 02:35:45 +0000 (+0000) Subject: enable maximal optimizations on win64 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d921a5fbd57e5a5e78de0c6f237dd9ef3d71323c;p=p5sagit%2Fp5-mst-13.2.git enable maximal optimizations on win64 p4raw-id: //depot/perl@16059 --- diff --git a/win32/Makefile b/win32/Makefile index 17c4bc2..e8a35c0 100644 --- a/win32/Makefile +++ b/win32/Makefile @@ -350,10 +350,17 @@ OPTIMIZE = -Od -MD -Zi -DDEBUGGING ! ENDIF LINK_DBG = -debug !ELSE -# -O1 yields smaller code, which turns out to be faster than -O2 -#OPTIMIZE = -O2 -MD -DNDEBUG -OPTIMIZE = -O1 -MD -DNDEBUG +OPTIMIZE = -MD -DNDEBUG LINK_DBG = -release +! IF "$(WIN64)" == "define" +# enable Whole Program Optimizations (WPO) and Link Time Code Generation (LTCG) +OPTIMIZE = $(OPTIMIZE) -Ox -GL +LINK_DBG = $(LINK_DBG) -ltcg +! ELSE +# -O1 yields smaller code, which turns out to be faster than -O2 on x86 +OPTIMIZE = $(OPTIMIZE) -O1 +#OPTIMIZE = $(OPTIMIZE) -O2 +! ENDIF !ENDIF !IF "$(WIN64)" == "define" diff --git a/win32/makefile.mk b/win32/makefile.mk index 1527b27..35a9eb3 100644 --- a/win32/makefile.mk +++ b/win32/makefile.mk @@ -467,14 +467,17 @@ OPTIMIZE = -O1 -MD -Zi -DDEBUGGING .ENDIF LINK_DBG = -debug .ELSE -.IF "$(CFG)" == "Optimize" -# -O1 yields smaller code, which turns out to be faster than -O2 -#OPTIMIZE = -O2 -MD -DNDEBUG -OPTIMIZE = -O1 -MD -DNDEBUG +OPTIMIZE = -MD -DNDEBUG +LINK_DBG = -release +.IF "$(WIN64)" == "define" +# enable Whole Program Optimizations (WPO) and Link Time Code Generation (LTCG) +OPTIMIZE += -Ox -GL +LINK_DBG += -ltcg .ELSE -OPTIMIZE = -Od -MD -DNDEBUG +# -O1 yields smaller code, which turns out to be faster than -O2 on x86 +OPTIMIZE += -O1 +#OPTIMIZE += -O2 .ENDIF -LINK_DBG = -release .ENDIF .IF "$(WIN64)" == "define"