summaryrefslogtreecommitdiff
path: root/build_windows_object_files_64.bat
diff options
context:
space:
mode:
authorJohn van Groningen2010-12-13 11:02:08 +0000
committerJohn van Groningen2010-12-13 11:02:08 +0000
commit1fdfb7bbb93de952d295d2d375b41387bbf6d2b3 (patch)
treebadb800705c1acd8f521152286a6867834873464 /build_windows_object_files_64.bat
parentfix garbage collector calls in add_empty_node_3 and more (diff)
put functions in areals.asm in different sections to enable optimizing linking,
these sections are first called _T000, _T001 .. and renamed to .text using rename_Tn_sections.c
Diffstat (limited to 'build_windows_object_files_64.bat')
-rw-r--r--build_windows_object_files_64.bat10
1 files changed, 7 insertions, 3 deletions
diff --git a/build_windows_object_files_64.bat b/build_windows_object_files_64.bat
index 9eff5cb..e069718 100644
--- a/build_windows_object_files_64.bat
+++ b/build_windows_object_files_64.bat
@@ -1,8 +1,12 @@
call "c:\Program Files\Microsoft SDK\SetEnv.bat" /AMD64 /RETAIL
+cl /nologo /O rename_Tn_sections.c
ml64 /nologo /c /Fo _startup0.o _startup0.asm
-ml64 /nologo /c /Fo _startup1.o astartup.asm
-ml64 /nologo /c /DPROFILE /Fo _startup1Profile.o astartup.asm
-ml64 /nologo /c /DPROFILE /DTRACE /Fo _startup1Trace.o astartup.asm
+ml64 /nologo /c /Fo _startup1_.o astartup.asm
+.\rename_Tn_sections _startup1_.o _startup1.o
+ml64 /nologo /c /DPROFILE /Fo _startup1Profile_.o astartup.asm
+.\rename_Tn_sections _startup1Profile_.o _startup1Profile.o
+ml64 /nologo /c /DPROFILE /DTRACE /Fo _startup1Trace_.o astartup.asm
+.\rename_Tn_sections _startup1Trace_.o _startup1Trace.o
cl /nologo /c /O /DWINDOWS /DTIME_PROFILE /DWRITE_HEAP /Fo_startup2.o wcon.c
"C:\Program Files (x86)\Microsoft Visual Studio 8\VC\bin\x86_amd64\ml64.exe" /nologo /c /Fo _startup3.o afileIO3.asm
cl /nologo /c /O /DWINDOWS /DA64 /DTIME_PROFILE /Fo_startup4.o wfileIO3.c