[m-dev.] for review: update README.MS-VisualC

Peter Ross peter.ross at miscrit.be
Wed May 30 22:33:46 AEST 2001


Hi,


===================================================================


Estimated hours taken: 0.1
Branches: main

README.MS-VisualC:
    Update this file with comments contributed by Anthony Senyard.


Index: README.MS-VisualC
===================================================================
RCS file: /home/mercury1/repository/mercury/README.MS-VisualC,v
retrieving revision 1.1
diff -u -r1.1 README.MS-VisualC
--- README.MS-VisualC	2000/06/29 09:33:22	1.1
+++ README.MS-VisualC	2001/05/30 12:23:55
@@ -20,6 +20,48 @@
 
 -----------------------------------------------------------------------------
 
+SOURCE INSTALLATION
+
+In order to save time in compilation the source distribution comes with
+prebuilt C files.  These C files are generated using the asm_fast grade
+which is incompatible with hlc.gc.  In order to alleviate this problem:
+
+1. Install cygwin (avoid the bug in sscanf with 1.3.1-1)
+
+2. Install an asm_fast grade version of the compiler which uses gcc as
+   the C compiler.  This can be done from a source or binary
+   distribution.  Follow standard instructions.  I suggest:
+
+   a) configure --prefix /usr/local/mercury-0.10.1
+   b) make install
+
+   Ensure your path has been modified so you can see the new mmc once it
+   is built.  For example:
+
+   a) edit /etc/profile and add /usr/local/mercury-0.10.1 to PATH
+
+3. To build a version of the mercury compiler with MSVC++ instead of
+   gcc, remotely check out a fresh version of the compiler, eg.
+
+   a) cvs -d :pserver:guest at cvs.mercury.cs.mu.oz.au:/home/mercury1/repository login
+   (password is guest)
+   b) cvs -d :pserver:guest at cvs.mercury.cs.mu.oz.au:/home/mercury1/repository co -r version-0_10_1 mercury
+
+   Then to use MSVC++ to build the compiler issue the following configure
+   command.  (You must be able to run MSVC++ from command line):
+
+   CC='CL /nologo' CPP='CL /nologo /E' configure --prefix /usr/local/msmercury
+   (configure defaults to using the hlc.gc grade as this is the only
+   grade currently supported).
+
+4. make install
+
+DO NOT USE THE SOURCE DISTRIBUTION TO BUILD THE MS-VisualC VERSION OF
+THE COMPILER!!  CONFIGURE DOES NOT DETERMINE THAT THE PRE-BUILT C FILES
+ARE INCOMPATIBLE IT JUST TRIES TO USE THEM ANYWAY.
+
+-----------------------------------------------------------------------------
+
 INSTALLING ON NETWORK DRIVES
 
 If you want to install on the machine, foo, in the directory \usr\local

--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list