
Installing the porch compiler
=============================

0) Be sure you are in the top directory of the porch distribution.

1) ./configure --prefix=<current working directory>

   The current working directory should be the absolute path;
   ./configure --prefix=$PWD   works in most shells.

   Problems: On some architectures configure does not recognize the
             host type. In that case, use the --host=<architecture>
             option to set the host type, e.g. --host=powerpc-aix.

2) Set environment variable PORCHPATH to hold the porch top directory.

3) make install  (make depend and make will deliver a bunch of
                  warnings. You can ignore those savely.)



System anomalies
================

IMPORTANT: You need to fix the following quirks in order to get 
porch working.

Linux/gcc2.7: porch does not work with the file /usr/include/_G_config.h
------------- as it is delivered in some linux distributions. Unless
              you know a better fix, you have to edit this file:

              After line 49:

		#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)
		/* INSERT THE FOLLOWING LINE: (hack to get porch running) */
		extern int __SI__, __QI__, __HI__, __DI__;
		typedef          int   _G_int8_t __attribute__((__mode__(__QI__)));
		typedef unsigned int  _G_uint8_t __attribute__((__mode__(__QI__)));
                 
			:
			:


Linux/gcc2.7: porch does not work with the file /usr/include/assert.h
------------- as it is delivered in some linux distributions. The problem
	      is a magic variable __PRETTY_FUNCTION__ defined within gcc.
	      You can use assert.h, if you also include the following:

		#ifndef __PRETTY_FUNCTION__
		#define __PRETTY_FUNCTION__ 0
		#endif



Recompiling architecture configurations
=======================================

During installation procedure of porch, the host architecture will
be chosen by default as UCF architecture. To choose another
architecture as UCF, follow the following steps:

0) Be sure you are in the top directory of the porch distribution.

1) make clean-arch

   Cleans up the current architecture configuration

2) make config-<arch>

   Use "make config-what" to obtain a list of currently supported
   architectures. For example, "make config-sparc" copies the
   configuration directories for Sparc as UCF architecture from 
   ./src/config/sparc/* into ./include

2) make reconfig

   Rebuilds porch

