COMPILERS(5)
FILE FORMATS
COMPILERS(5)
NAME
compilers - SCore Compiler database

DESCRIPTION
mpc++, scorecc and other SCore compiler driver can specify backend compiler use -compiler option. compilers files specify the backend compilers and this command path. All compilers files in (INSTALL_DIR)/etc/compilers directory. Compiler commands search and read following files:
(INSTALL_DIR)/etc/compilers/system
(INSTALL_DIR)/etc/compilers/system.bintype
(INSTALL_DIR)/etc/compilers/site
(INSTALL_DIR)/etc/compilers/site.bintype
bintype specifies the binary type to run the compiler commands. The first and second files are created when you install SCore system. We recommented don't touch these files, because this file is repaced when you re-compile or verion up to SCore system. If you want to change backend compiler, please create site (or site.bintype when you share multiple platform).

Each line of the compiler file specifies script name and compiler informations. A single '#' character indicates that the rest of the line is a comment, and to be ignored.

Notation of a scripy as follows:

script compiler=path ...
The first compiler entry is the default compiler. To check current compiler list, you can run score_compiler_list. Note that if you add backend compiler for MPI, you must recompile mpich module.

EXAMPLE
mpicc	gnu=gcc intel=icc
mpic++	gnu=g++ intel=ifc

In this example, if you invoke following command:

    mpicc -compiler intel foo.c
foo.c compiles with icc. And you invoke as following:
    mpic++ bar.cc
bar.cc compiles with g++.
FILES
(INSTALL_DIR)/etc/compilers/system
(INSTALL_DIR)/etc/compilers/system.bintype
(INSTALL_DIR)/etc/compilers/site
(INSTALL_DIR)/etc/compilers/site.bintype

SEE ALSO
mpc++(1), scorecc(1), mpicc(1), mpic++(1), mpif77(1), mpif90(1), score_compiler_list(8),

$Id: compilers.html,v 1.4 2002/09/06 11:42:11 kameyama Exp $