Back to wiki

RCS History

/ TOP / building.mdwn

Revision 1.6


__Unix Hosts__

Currently, PCC will build on most unix-based operating systems.

Building PCC is reasonably straight-forward:

    $ ./configure
    $ make&& make install

By default, the compiler is installed to /usr/local/bin/pcc and the pre-processor in /usr/local/libexec/cpp.

To use PCC as the system compiler you may need to modify some system header files.  See [[Supported-Platforms]] for information about your platform.

If you wish to build a cross-compiler, some further information is available at [[Cross-Compiler]].

If you wish to cross-compile PCC, some further information is available at [[Cross-Compile]]

__Microsoft Windows Host__

PCC will build on Microsoft Windows

Compilation has been tested with Visual Studio 7, but should also work with the Microsoft C++ Toolkit.  You also need bison and flex as build tools.  These tools can be found in the [UnxTools](http://sourceforge.net/project/showfiles.php?group_id=9328) distribution.

* open the Visual Studio Command Prompt
* change directory to the pcc source and into the os/win32 directory
* customize the paths in build.bat
* find bison.simple in the UnxTools distribution and modify build.bat to point to it's location, or copy this file into os\win32.
* run build.bat

By default, directories under c:\pcc will contain the built binaries.  You can add c:\pcc\bin to your path.

You will need the [YASM assembler](http://www.tortall.net/projects/yasm/wiki/Download).  Rename yasm.exe and copy the binary into c:\pcc\bin.  Install the libraries and include files under c:\pcc\include and c:\pcc\lib.

You will also need the include files and libraries from the [Microsoft Platform SDK](http://www.microsoft.com/downloads/details.aspx?FamilyId=0BAF2B35-C656-4969-ACE8-E4C0C0716ADB&displaylang=en) and Microsoft's link.exe.


Powered by rcshistory.cgi 0.3