Installing disc 6 (Fortran 77) SETTING UP THE FORTRAN-77 COMPILER ON THE ARM (PAGE mode is on, press to continue) To set up the Fortran-77 compiler on your winchester it is essential to set up: 1. The "library" directory structure. 2. The "execlib" directory structure. 3. The "tmp" directory structure. 4. The "f77" compiler directory structure. 5. The "f77_files" directory structure. 1. Setting up the library directory structure. - Ensure that the library directory exists "$.library". - Copy the files in "$.library" on this disc into the library directory on your winchester. The files are: i. "fpe" - floating point emulator. ii. "f77" - A renamed command program. iii. "f77q"- A renamed command program. 2. Setting up the execlib directory. - Ensure that the "execlib" directory exists as "$.execlib" - Copy the files in "$.execlib" on this disc into the "execlib" directory on your winchester. the files are: i. "f77" - The command file used by the "f77" command program. ii. "f77q"- The command file used by the "f77q" command program. 3. Setting up the "tmp" directory - Ensure that the "tmp" directory exists as "$.tmp" on your winchester. This directory is used to hold temporary command files. 4. Setting up the "Fortran-77" compiler directory - This directory may be placed anywhere, for example "$.language.f77" - Copy the files in "$.f77" on this disc into the "f77" directory that you have set up. The files are: i. "f77fe" - The front end compiler. ii. "f77cg" - The code generator. iii. "Xlib_f77"- The run time library. 5. Setting up the f77_files directory. - Ensure that the directory exists as "$.f77_files". - Ensure that the "f77_files" directory contains the sub directories: i. "image" ii. "source" iii. "list" iv. "aof" v. "fcode" The directory structure should now look something like this: $ : ----------------------------------------- : : : : : library tmp execlib language f77_files : : : : -------------- ----- ----------------------------- : : : : : : : : : : : : f77 source image aof fcode list map To compile Fortran-77 programs. - Place your source program into the directory "source" which is in your "f77_files" directory. There is an example program on this disc in the directory "$.f77.source" which prints "hello world". - Ensure that your current directory is your "f77" directory. - Type: f77q your_source_program_name - The program will be compiled, with all errors reported and the resulting executable program will be in the directory "f77_files.image". For more information on the fortran compiler refer to the manual "fortran 77" and on the command file refer to the "Utilities User Guide".