Getting Started with FORTRAN on the Alpha1
April 16, 2004 -  Getting Started with FORTRAN on the Alpha1

Getting Started with FORTRAN on the Alpha1

 

Accessing the Alpha1

Click on icon Telnet to Alpha1

Type in your User Id and press enter

Type in your password and press enter

 

To create or edit a file

type $ EDIT filename.FOR

Note:  filename must be 8 characters (letters or numbers) or less

Remember Backspace is now Ctrl Backspace.

To save file and exit editor press Ctrl Z

 

To execute the FORTRAN program

Remember this is a three step process.  Each step must be error free before going to next step.

 

Step 1: Compile

type $ FORTRAN filename.FOR/LIST

Note:  If you have errors,  you must correct them before going to the next step.

Suggestions on how to find errors.

1. Print the listing file. 

type $ PRINT filename.LIS

2. Make corrections to source file.

Look at the printout (filename.lis).  

type $ EDIT filename.FOR

Make the corrections and save.

3.  Recompile the program (see step 1: Compile)

 

Step 2: Link

type $ LINK filename.OBJ

Note:  If you have errors with this step, please seek additional help.

 

Step 3: Run

type $ RUN filename.EXE

Note: If you have errors, you may need to reexamine your program for logical errors.

 

To print files

type $ PRINT filename.FOR

Note:  You can print any files except .OBJ or .EXE files.  You many print the listing file (.LIS), source file (.FOR), or any other file you create such as PRINTER.DAT

 

To rename files

                type $ RENAME oldfilename.extension   newfilename.extension

For example RENAME EX.FIR  NEW.FOR

 

To copy files

                type $ COPY oldfilename.extension newfilename.extension

 

To delete file

                type $ DELETE filename.extension;version

                For example DELETE EX.EXE;1

 

To exit the Alpha1

type $ LOGOFF