-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.WIN64
171 lines (106 loc) · 6.77 KB
/
README.WIN64
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
-------------------------------------------------------------------------------
HERCULES FOR WIN64 README FILE
There is only one 64-bit architecture supported by 64-bit Windows: the
x64 architecture also known as x86_64 (for AMD64 processors).
HOW TO COMPILE HERCULES FOR AMD64
1. Install Visual Studio 2008 (VS9) Standard or Professional Edition
A 90-day evaluation edition can be downloaded from
http://msdn.microsoft.com/en-us/evalcenter/bb633753.aspx
2. If compiling on a 32-bit Windows system, go to the start menu and choose
"All Programs" - "Microsoft Visual Studio 2008" - "Visual Studio Tools"
- "Visual Studio 2008 x64 Cross Tools Command Prompt"
Then, at the Cross Tools command prompt, enter this command:
SET CPU=AMD64
3. If compiling on a 64-bit Windows system, go to the start menu and choose
"All Programs" - "Microsoft Visual Studio 2008" - "Visual Studio Tools"
- "Visual Studio 2008 x64 Win64 Command Prompt"
4. If you require gzip or bzip2 for disk or tape compression, or if you
require PCRE for the Hercules Automatic Operator facility, you should
install the AMD64 versions of these programs in winbuild\zlib\x64
winbuild\bzip2\x64 and winbuild\pcre\x64 under the Hercules directory.
You can override these default directory locations by simply setting
the following environment variables:
SET ZLIB_DIR=c:\packages\zlib
SET BZIP2_DIR=c:\packages\bzip2
SET PCRE_DIR=c:\packages\pcre
5. nmake clean -f makefile-dllmod.msvc
nmake -f makefile-dllmod.msvc
6. The binaries will be installed into subfolder "msvc.AMD64.bin"
If you compiled on a 32-bit Windows system, copy this folder
to your target 64-bit Windows machine.
7. If you copy the binaries to a machine which does not have Visual
Studio 2008 (VS9) installed, then you must also install the
Microsoft Visual C++ 2008 Redistributable Package (x64)
on the target machine. This package can be downloaded from
http://www.microsoft.com/downloads/details.aspx?FamilyID=bd2a6171-e2d6-4230-b809-9a8d7548c1b6&DisplayLang=en
-------------------------------------------------------------------------------
How to build Hercules for the x64 (AMD64):
The Fish "Visual Studio 2008" method
(which accomplishes virtually the same thing
as the above command-line build instructions)
1. Install Visual Studio 2008.
Be sure to select compiler support for "x64" when installing Visual
Studio since the Hercules provided Visual Studio Solution expects it.
2. Open the "Hercules_VS2008.sln" Solution file.
3. Select your desired Solution Configuration (Debug or Release) and
Solution Platform (Win32 or x64) from the appropriate dropdowns.
4. Click the "Build Solution" or "Rebuild Solution" toolbar button.
Note: Your 64-bit versions of the ZLIB, BZIP2, and/or PCRE development
packages should be in an appropriate 'x64' subdirectory beneath
their normal package home directory. See the ZLIB_DIR, BZIP2_DIR,
and/or PCRE_DIR sections of the README.MSVC document for details.
-------------------------------------------------------------------------------
Building Hercules from the command-line
via the "makefile.bat" Windows batch file.
The Hercules "makefile.bat" makes it trivially easy to build Hercules from
the command-line on Windows. In fact, the Visual Studio "project" files
included with Hercules are setup to simply invoke the Hercules "makefile.bat"
with default build parameters. (see previous section immediately above)
What follows further below is the usage information that is displayed when
you enter the "makefile.bat" command with no arguments.
Note: As explained in the previous sections, in order to build support for
ZLIB and/or BZIP2 compressed dasd files and/or Regular Expression support,
you need to also ensure your 64-bit versions of the ZLIB, BZIP2, and/or
PCRE development packages should be in an appropriate 'x64' subdirectory
beneath their normal package home directory. See the ZLIB_DIR, BZIP2_DIR,
and/or PCRE_DIR sections of the README.MSVC document for details.
makefile.bat
Initializes the Windows software development build envionment and invokes
nmake to build the desired 32 or 64-bit version of the Hercules emulator.
Format:
makefile.bat {build-type} {makefile-name} {num-cpu-engines} \
[-asm] \
[-title "custom build title"] \
[-hqa {directory}] \
[-a|clean] \
[{nmake-option}]
Where:
{build-type} The desired build configuration. Valid values are
DEBUG / RETAIL for building a 32-bit Hercules, or
DEBUG-X64 / RETAIL-X64 to build a 64-bit version
of Hercules targeting (favoring) AMD64 processors.
DEBUG builds activate/enable UNOPTIMIZED debugging
logic and are thus VERY slow and not recommended
for normal use. RETAIL builds on the other hand
are highly optimized and thus the recommended type
for normal every day ("production") use.
{makefile-name} The name of our makefile: 'makefile.msvc' (or some
other makefile name if you have a customized one)
{num-cpu-engines} The maximum number of emulated CPUs (NUMCPU=) you
want this build of Hercules to support: 1 to 64.
-asm To generate assembly (.cod) listings.
-title "xxx..." To define a custom title for this build.
-hqa "directory" To define the Hercules Quality Assurance directory
containing your optional "hqa.h" and/or "HQA.msvc"
build settings override files.
[-a|clean] Use '-a' to perform a full rebuild of all Hercules
binaries, or 'clean' to delete all temporary work
files from all work/output directories, including
any/all previously built binaries. If not specified
then only those modules that need to be rebuilt are
actually rebuilt, usually resulting in much quicker
build. However, when doing a 'RETAIL' build it is
HIGHLY RECOMMENDED that you always specify the '-a'
option to ensure that a complete rebuild is done.
[{nmake-option}] Extra nmake option(s). (e.g. -k, -g, etc...)
-------------------------------------------------------------------------------