	   
Last modified: Thu Sep 29 01:21:35 1994

For GPC-1.0*
and GCC version 2.6.*

This is a short installation quide for the gnu pascal compiler:

	1) compile gcc. It must be the same version as the one GPC is
	   implemented with.

	   Leave the objects in place, since GPC will directly load
	   most of the GCC object files.

	  Install the GNU C compiler. At least install it so that the
	  "xgcc" program will be able to locate the libgcc.a file with
	  "xgcc --print-libgcc-file-name" command. This is to find
	  out where gpc Makefile should put libgpc.a and gpc1.

	2) cd to gpc object directory. It should not be
	   the same as the GPC source directory. You'll need
	   a make that understands VPATH variable. GNU Make does.

	   Gpc will later be integrated to the gcc distribution
	   and then will compile like the other GNU compilers.

	3) In the gpc object directory, run the "configure" program
	   from gpc source directory. 

	   Do not use "--prefix" flag unless you have to. If you do not
	   use it, gpc will install itself to the same directory where
	   gcc has been installed before.

	   To make this easy, I use the shell script DOCONF.example to
	   configure gpc.

	   This shell script gives the --gccsrc and --gccdir
	   switches to gpc configure program. To use it, you should
	   create file GCC-VERSION that contains only the version
	   number of gcc (it's used in the pathnames), e.g. 2.6.0

	   NOTE: Do *not* use absolute path names in gccdir or gccsrc
	   symlinks!!!

	   The configure script then generates a Makefile to your
	   current directory from the Makefile.in in the distribution.

	   Note that the gpc configure script does not want to
	   have the usual host-vendor-system spec, since GPC is
	   compiled for the same system than GCC was.

	4) Say "make -n" to see if everything is ok.

	5) After it is, you just say "make" to make the compiler
	   and run time system.
	  
	6) The run time system is quite portable, but I have not
	   tested it on a pure System V, and it may require
	   some modifications. My current development system is a
	   i486 Mach 3.0 + BSD single server.

	   For alpha (GCC 2.4.5): If you compile with "cc", config.h has
	   some incompatible prototypes unless __STDC__ is defined.  I
	   compiled the run time system with the following flags:
		 make CC="cc -std1" 
		   or
		 make CC=cc MY_CFLAGS="-D__STDC__"

	   The rts has been compiled in: aix,osf 1,mach ux,linux,
	   ultrix,hp-ux,minix,etc...

	7) When everything compiles, you can verify what the 
	   "make -n install" command does, and if you are satisfied
	   run it without the -n option to install the compiler (gpc1),
	   front end (gpc), run time system (libgpc.a) to the same
	   place where gcc was installed.

	   It is sort of stupid to have a separate incarnation
	   of gcc.c; the difference now is that "gpc"
	   also searches from library "libgpc.a and -lm".
	   In addition gcc.c specifies the interface to the
	   Pascal compiler (gpc1). This command will vanish when
	   "gcc" knows how to compile Pascal programs.

	8) While compiling, browse through COPYING, README, GPC.NOTES
	   and PROBLEMS to see what you are getting.

	9) If you make modifications/bug fixes, please send
	   them back to me so that we can make this a better compiler.

						Juki
						jtv@hut.fi

*---------------------------------------------------------------------------*
 jtv@hut.fi                               Jukka Virtanen
 Jukka.Virtanen@hut.fi                    Helsinki University of Technology
 juki@hut.fi                              Computing Centre
                                          SF-02150, Espoo, FINLAND
				          tel. +358 0 4514315
					  Fax. +358 0 464788

-----------------------------------------------------------------------------
