XL Fortran for AIX 8.1

User's Guide


Splitting Subprograms into Individual Files (fsplit)

The fsplit command splits the specified Fortran source program files into several files. You should only use fsplit with FORTRAN 77 programs.


$ cat fsplit.f
        subroutine sub1
                print *,'Hello world'
        end
 
        subroutine sub2
                print *,'Goodbye'
        end
 
        program main
                call sub1
                call sub2
        end
$ fsplit fsplit.f
sub1.f
sub2.f
main.f


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]