/
README.MS-VisualC
54 lines (31 loc) · 1.48 KB
/
README.MS-VisualC
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
-----------------------------------------------------------------------------
INTRODUCTION
Mercury is in the process of being ported to use the Microsoft Visual
C++ 6
compiler. However not all dependencies on Cygwin have been removed and
cygwin is still required for installation (see README.MS-Windows).
-----------------------------------------------------------------------------
CONFIGURATION
To use MSVC to build the compiler issue the following configure command.
CC='CL /nologo' CPP='CL /nologo /E' configure
configure defaults to using the hlc.gc grade as this is the only grade
currently supported.
-----------------------------------------------------------------------------
INSTALLING ON NETWORK DRIVES
If you want to install on the machine, foo, in the directory \usr\local
you need to add `--prefix //foo/usr/local' as an option to configure.
Then ensure that the directory that you wish to install into is mounted
somewhere, ie
mount //foo/usr/local /temp_mount_point
and then use that mount point as the location to install into
make install INSTALL_PREFIX=/temp_mount_point
This avoids the problem that
mkdir -p //foo/usr/local/xxx
fails.
-----------------------------------------------------------------------------
NONE.* GRADES
Are not supported yet! But if they were and you have a file with
a large
switch in it you need to pass the following flag to mmc
--max-jump-table-size 512
-----------------------------------------------------------------------------