The mpich implementation provides two commands for compiling and linking C, C++, Fortran-77, and Fortran-90 programs. They also have a simple interface to the profiling and visualization libraries described in [12] through these command-line options:
mpicc -c foo.c mpiCC -c foo.C mpif77 -c foo.f mpif90 -c foo.f90and
mpicc -o foo foo.o mpiCC -o foo foo.o mpif77 -o foo foo.o mpif90 -o foo foo.oNote that for Fortran 90, different systems may require different suffixes. For example, AIX systems do not support f90 as a file suffix for Fortran 90 programs.
Commands for the linker may include additional libraries. For
example, to use some routines from the MPE library, enter
mpicc -o foo foo.o -lmpeCombining compilation and linking in a single command, as shown here,
mpicc -o foo foo.c mpiCC -o foo foo.C mpif77 -o foo foo.f mpif90 -o foo foo.f90may not work on some systems.
More information on using these commands may be found in the Users Guide to mpich.