User Tools

Site Tools


tutorials:fortran

This is an old revision of the document!


FORTRAN-20 Compiler Tutorial

FORTRAN-20 is a FORTRAN compiler for TOPS-20. It supports the FORTRAN-77 standard (ANSI X3.9-1978 American National Standard Programming Language FORTRAN) with extensions and additions.

The purpose of this tutorial

Hello World

A sample program for the FORTRAN-20 compiler.

c2345+---^---------^---------^---------^---------^---------^---------^--........
      program hello                    ! The above line is a comment.
                                       ! Text from exclamation pt. to 
                                       !    end of line is a comment.
      write(5,*) ' Hello, World!'      ! 5 is the user TTY logical unit.
                                       ! Space before Hello is significant!

      stop                             ! The compiler ignores blank lines.
      end                              

The same program without annotation:

      program hello
      write(5,*) ' Hello, World!'
      stop
      end                              

References

tutorials/fortran.1389331182.txt.gz · Last modified: 2014/01/10 05:19 by papa