next up previous contents index
Next: 4 The Source-to-Source Translation Up: ADAPTOR Users Guide Previous: 2 Quick Start   Contents   Index

Subsections


3 Configuration Files

Both executables, the source-to-source translation fadapt and the compiler driver adaptor, use configuration files from where they read their initial configuration. These configuration files are named .fadaptrc and .adaptorrc. In contrary to the command line options the configuration files are used to fix options for the whole installation.

3.1 System and User Configuration Files

A configuration file for adaptor must be named ".adaptorrc" and for fadapt respectively .fadaptrc. The tools interpret such configuration files and look for them in certain directories in the following order:

A setting in a configuration file replaces the previous setting. Therefore, settings in the system configuration file are always taken unless they are redefined by user configuration files in the home or current directory. Some of the settings can also be changed by corresponding command line arguments and will replace previous settings from the configuration file.

3.2 Syntax of Entries in the Configuration File

Entries in the configuration files have the form:

  <identifier> = <value>     or
# <this is a comment line>

Leading and trailing blanks are ignored for identifier and value.

Note: For the identifier on the left hand side upper or lower case letters are not significant. But they are significant for the value on the right hand side.

Section 4.10 describes the identifiers that can be set by the source-to-source translation fadapt and Section 5.8 the ones of the compiler driver adaptor. If an identifier is not handled by the tool, the whole line is ignored.


3.3 Definition of New Command Line Options

The configurations files can also be used to define new command line options that stand as abbreviations for a list of other options.

-G=-v -debug -list
-HPF=-off:TRA -off:OMP -off: -hpf
-OMP=-off:TRA -off:HPF -omp
-OMP_SIM=-off:TRA -off:HPF -omp -submain=APPL_MAIN

Hint: New defined options itself cannot be used again as options on the right hand side.

# this definition is not allowed
-OMP_SIM=-OMP -submain=APPL_MAIN

ADAPTOR itself uses already this feature to define new options, especially the compiler driver provides by this feature one single flag for all the different compilation models.


next up previous contents index
Next: 4 The Source-to-Source Translation Up: ADAPTOR Users Guide Previous: 2 Quick Start   Contents   Index
Thomas Brandes 2004-03-19