To: csc2307 Subject: Using the Sun Fortran Compiler on the CSLab System I mentioned in class that you should use the Sun f77 compiler on the CSLab system to do the assignments for CSC 2307. To ensure that you get this compiler on the CSLab system, you should modify your .cshrc file as follows. Find the section of your .cshrc file that looks like: if ( -r /slocal/etc/site.cshrc ) then source /slocal/etc/site.cshrc set path=($path .) add the line: setenv SUNWspro yes to make it look like: if ( -r /slocal/etc/site.cshrc ) then setenv SUNWspro yes source /slocal/etc/site.cshrc set path=($path .) Then login to either a CSLab Sun workstation or one of the CSLab Sun servers (qew, dvp or cogitate). To check that you have modified your .cshrc file correctly, execute which f77 You should get /local/lib/SUNWspro/bin/f77 After you have done that, you should also add the line alias f77 'f77 -u -C' to your .cshrc file. This will cause f77 to check 1. check array references for out of range subscripts 2. report undeclared variables each time you run f77.