source: trunk/lib_ir/AgnerTestP/PMCTest/make_a_obj.bat @ 4221

Last change on this file since 4221 was 4221, checked in by linmengl, 5 years ago

initial checkin of Agner Fog's performance script

File size: 1.5 KB
Line 
1rem              make_a_obj.bat                     2014-04-16 Agner Fog
2
3rem  compiles PMCTestA.cpp into PMCTestA32.obj and PMCTestA64.obj
4
5rem  System requirements:
6rem  Windows 2000 or NT or later
7rem  Microsoft Visual C++ compiler or other C++ compiler
8
9rem  You have to change all paths to the actual paths on your computer
10
11rem  Set path to 32 bit compiler
12set VSroot=C:\Program Files (x86)\Microsoft Visual Studio 11.0
13set SDKroot=C:\Program Files (x86)\Windows Kits\8.0\
14set path1=%path%
15set path=%VSroot%\VC\bin;%VSroot%\Common7\IDE;%path1%
16
17rem  Set path to *.h include files.
18set include=%VSroot%\VC\include;%SDKroot%\Include\um;%SDKroot%\Include\shared
19
20rem  Set path to *.lib library files.
21set LIB="%VSroot%\VC\lib;%SDKroot%\Lib\win8\um\x86"
22
23rem compile 32 bit object file
24cl /c /O2 /FoPMCTestA32.obj PMCTestA.cpp
25if errorlevel 1 pause
26
27rem compile 32bit exe file
28rem cl /O2 /MT /Fepmctest.exe PMCTestA32.obj PMCTestB.cpp "%SDKroot%\Lib\win8\um\x86\uuid.lib" "%VSroot%\VC\lib\libcmt.lib" "%VSroot%\VC\lib\oldnames.lib"
29
30cl /O2 /MT /Fepmctest.exe PMCTestA.cpp PMCTestB.cpp Advapi32.lib /link /LIBPATH:"%SDKroot%\Lib\win8\um\x86" /LIBPATH:"%VSroot%\VC\lib"
31if errorlevel 1 pause
32
33
34
35
36rem  Set path to 64 bit compiler
37set path=%VSroot%\VC\bin\x86_amd64;%VSroot%\Common7\IDE;%path1%
38
39rem  Set path to *.lib library files.
40set lib="%VSroot%\VC\lib\amd64"
41
42rem compile 64 bit version
43cl /c /O2 /FoPMCTestA64.obj PMCTestA.cpp
44if errorlevel 1 pause
45
46pause
Note: See TracBrowser for help on using the repository browser.