Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ f77(1) — DG/UX 4.00

Media Vault

Software Library

Restoration Projects

Artifacts Sought



                                                                   f77(1)



        _________________________________________________________________
        f77                                                       Command
        FORTRAN 77 language compiler in DG/UX
        _________________________________________________________________


        SYNTAX

        f77 [ options ] files


        DESCRIPTION

        F77(1) is a preprocessor for the Data General FORTRAN 77
        compiler.

        NOTE:
             F77 is an optional product purchased separately from DG/UX.
             It is not included in the standard DG/UX package.

        Arguments whose names end with .f are taken to be FORTRAN 77
        source programs; they are compiled and each object program is
        left in the current directory in a file whose name is that of the
        source, with .o substituted for .f.

        In the same way, arguments whose names end with .c or .s are
        taken to be C or assembly source programs and are compiled or
        assembled, producing .o files.

        Switches are handled by f77(1), the compiler, or the link editor
        ld(1).  They are passed through automatically, as required.


           f77 switches

        These are all of the switches that are handled by f77(1):

        -1            Same as -onetrip, below.

        -Bpath        Construct path names for an alternate C compiler,
                      F77 compiler, Pascal compiler, assembler, and
                      linker by concatenating string with ccomp, f77,
                      pascal, as, and ld respectively.  If path is not
                      specified, the following pathnames will be used:

                           /usr/dgc/ccomp
                           /usr/f77/fcomp
                           /usr/pascal/pascal
                           /lib/as
                           /lib/ld




        DG/UX 4.00                                                 Page 1
               Licensed material--property of copyright holder(s)





                                                                   f77(1)



        -c            Compile only, do not link object files.

        -g            Produce information for source-level debuggers.

        -j[012]       Specify the error level that is acceptable [-j2 is
                      the default]
                      [-j0 delete object file on any error]
                      [-j1 Level 1 warnings are not considered a fatal
                      error]
                      [-j2 Level 1 warnings and Level 2 errors are not
                      fatal]

        -onetrip      Same as -1.  Compile DO loops that are performed at
                      least once if reached. (FORTRAN 77 DO loops are not
                      performed at all if the upper limit is smaller than
                      the lower limit.)

        -Olevel       Optimize, optionally specifying level, a number
                      from 1 to 3.

        -p            Reserved for profiling.

        -S            After compilation, run a disassembler to produce an
                      assembly language file that can be assembled to
                      give an equivalent object file.  Note that the
                      object file produced by the compilers and that
                      produced by the assembler after assembling a file
                      produced with -S will not compare exactly.  This is
                      due to the fact that the compilers and the
                      assembler produce object blocks in different
                      orders.

        -toptions     Options may be one or more of the set acflp . Find
                      only the designated alternate assembler [a], C
                      compiler [c], F77 compiler [f] linker [l], and/or
                      Pascal compiler [p], specified with the -B option.
                      If no letter is specified after the -t option, cfp
                      will be used.  If no -B option was specified, the
                      following pathnames will be used:

                           /usr/dgc/ccomp
                           /usr/f77/fcomp
                           /usr/pascal/pcomp
                           /lib/as
                           /lib/ld

        -v            Verbose operation. Print the command lines of pc,
                      as, and ld as they are executed.

        -Woption args...
                      Pass arg(s) to the facility specified by option,



        DG/UX 4.00                                                 Page 2
               Licensed material--property of copyright holder(s)





                                                                   f77(1)



                      which is only one letter from the set acflp.  The
                      option indicates that the arg(s) will be passed to
                      the assembler [a],  C  compiler [c], F77 compiler
                      [f], linker [l], or Pascal compiler [p].

        -YFdir        Find the F77 compiler in dir.

        -z            Ignored.  In other versions, this forces address
                      zero not to be bound to check for NULL pointers.
                      Since users are always bound to segment 7 under
                      DG/UX, address zero is never valid.


           AOS/VS switches

        These switches are supplied for compatibility with FORTRAN 77 on
        AOS/VS:

        -Fcardformat    Specify format of source lines.

        -Fcode          Genrates assembly code listing in listing file.

        -Fdotrip=n      Where n is 0 or 1. Treat as if -onetrip was
                        specified if n=1. Ignore if n=0.

        -Fe=filename    Specify error file.

        -Ferrorcount=n  Specify number of errors tolerated before
                        stopping.

        -Fhollerith=s   Where s is one of ansi, non-dg, or old-dg.
                        Specify how Hollerith constants and character
                        strings are to be processed.

        -Finteger=n     Where n is 2 or 4. Specify default size (in
                        bytes) of INTEGER variables.

        -Fl=filename    Specify listing file.

        -Flineid        Insert line-number information in the object
                        file.  Runtime error reporting will include the
                        listing file line number of any errors caught.
                        Causes -Fprocid to be set.

        -Fn             Suppress production of object file.

        -Fnomap         Omit storage map listing in listing file.

        -Fnowarnings    Suppress reporting and counting of level 1 error
                        messages (warning messages).




        DG/UX 4.00                                                 Page 3
               Licensed material--property of copyright holder(s)





                                                                   f77(1)



        -Fo=filename    Rename object file to filename.

        -Foptimize [ =n ]
                        Where n is 1, 2, or 3. Specify level of
                        optimization. If =n is omitted, level 3 (highest
                        level of optimization) is assumed.

        -Fpreconnections=filename
                        Link option to specify preconnection filename.

        -Fprocid        Insert procedure names in the object file. This
                        means that runtime error reporting will include
                        the name of procedures that contain an error. A
                        procedure is any intrinsic function, statement
                        function, function subprogram, or subroutine
                        subprogram. If -Flineid is set, the functionality
                        of this switch is automatically included.

        -Fsavevars      Save variables.

        -Fstatistics    Produce statistics about the compilation.

        -Fstrings=s     Where s is ansi or dg.  Specify how to process
                        control strings.

        -Fsub           Specify range checking for array and character
                        strings.


           Ld switches

        These switches are read by ld(1), the link editor:

        -e symbol     Starting address is symbol.

        -lname        Search for library libname.a.

        -L dir        Search for libraries in dir before searching /lib
                      and /usr/lib.

        -m            Produce a link map.

        -M            Warn about multiply defined symbols.

        -N            Compress text and data.

        -o file       Executable module is called file instead of a.out.

        -Q            Don't squash the bss area.

        -r            Produce relocatable output which can be used as an



        DG/UX 4.00                                                 Page 4
               Licensed material--property of copyright holder(s)





                                                                   f77(1)



                      input file to a subsequent ld run.  The linker will
                      not complain about unresolved references, and the
                      output file will not be executable.  This requires
                      the revision 4.00 DG/UX linker.

        -RD num       Set beginning data address to num.

        -RT num       Set beginning text address to num.

        -s            Strip symbol table information.

        -u name       Add name as an external.

        -V            Print the revision number of ld and as.

        -VS rev       Set program's revision number to rev.

        -x            Strip local symbols.

        Use dir as the first default library
                      directory to be searched by the linker instead of
                      /lib.

        -YUdir        Use dir as the second default library directory to
                      be searched by the linker instead of /usr/lib.

        The output is an executable program with the default name a.out .


        FILES

        file                Input file
        file.o              Object file
        a.out               Linked output
        /lib/liba           Common language runtimes


        SEE ALSO

        as(1) cc(1), fsplit(1), ld(1), pc(1).
        The (3F) sections on FORTRAN 77 runtime routines in the FORTRAN
        Programming Language Manual.


        DIAGNOSTICS

        The diagnostics produced by f77 itself are intended to be self-
        explanatory.  Occasional messages may be produced by the link
        editor ld(1).





        DG/UX 4.00                                                 Page 5
               Licensed material--property of copyright holder(s)



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026