![]() |
|||
|
|
/pub/courses/cpsc605/config/setup
This will create a bunch of files in directory:
/user/login/minipolariswhere login is your login name
cd ~/minipolaris
make [mini_polaris] >& make.log &
tail -f make.log
The above method of saving the output to make.log while also reading it allows you to monitor the progress, yet keep the output on file so you may closely scrutinize it if necessary. If you compile from within emacs, this is not necessary.
Also, note that since tail -f continues to wait for anything appended to the file, you will have to hit Control-C to exit.
For a more thorough description of the compilation process, see Project 1a.
mini_polaris [ -s <switches> -f <switch file> -v [ file.f ... ]A sample switch file would contain several switches, including the following :
-s Indicates that a set of switch specifications follow.
The format is token=value,...,token=value.
-f Indicates that the next argument on the command line is
a file containing the declaration of tokens for use as
switche values in polaris.
-v Print the version.
pu_start 0 skip until PROGRAM-UNIT-(pu_start)The output of mini_polaris is a list file, which includes diagnostic information. You may convert this output to a FORTRAN program with the list2src command :
pu_stop 0 skip after PROGRAM-UNIT-(pu_stop)
prom_logical 1 1= promote LOGICALs to INTEGERs in arithmetic exprs
prom_integer 1 1= promote INTEGERs to LOGICALs in logical exprs
integer_len 4 default length of INTEGER variables.
logical_len 4 default length of LOGICAL variables.
real_len 8 default length of REAL variables.
double_len 8 default length of DOUBLE PRECISION variables.
complex_len 8 default length of COMPLEX variables.
removegoto 1 control flow normalization to create IF-ENDIF blocks.
equiv 1 replace real references with equivalenced complex
equiv_debug 0 debug level of equivalence normalizer
polaris file.f > file.listThis can then be input into a native compiler.
list2src < file.list > file.new.f
Parasol Home | Research | People | General info | Seminars | Resources Parasol Lab, 301 Harvey R. Bright Bldg, 3112 TAMU, College Station, TX 77843-3112 Contact Webmaster Phone 979.458.0722 Fax 979.458.0718
Department of Computer Science and Engineering | Dwight Look College of Engineering | Texas A&M University Privacy statement: Computer Science and Engineering Engineering TAMU |