G77

Section: GNU Tools (1)
Updated: 15feb1995
Index Return to Main Contents
 

NAME

g77 - GNU project F77 Compiler (v0.5.5)  

SYNOPSIS

g77 [option | filename ]...  

DESCRIPTION

The C and F77 compilers are integrated; g77 is a program to call gcc with options to recognize F77. gcc processes input files through one or more of four stages: preprocessing, compilation, assembly, and linking. This man page contains full descriptions for only F77 specific aspects of the compiler, though it also contains summaries of some general-purpose options. For a fuller explanation of the compiler, see gcc(1).

F77 source files use the suffix `.f'; F77 files to be preprocessed by cpp(1) use the suffix `.F'.  

OPTIONS

There are many command-line options, including options to control details of optimization, warnings, and code generation, which are common to both gcc and g77. For full information on all options, see gcc(1).

Options must be separate: `-dr' is quite different from `-d -r '.

Most `-f' and `-W' options have two contrary forms: -fname and -fno-name (or -Wname and -Wno-name). Only the non-default forms are shown here.

-c
Compile or assemble the source files, but do not link. The compiler output is an object file corresponding to each source file.
-Dmacro
Define macro macro with the string `1' as its definition.
-Dmacro=defn
Define macro macro as defn.
-E
Stop after the preprocessing stage; do not run the compiler proper. The output is preprocessed source code, which is sent to the standard output.
-g
Produce debugging information in the operating system's native format (for DBX or SDB or DWARF). GDB also can work with this debugging information. On most systems that use DBX format, `-g' enables use of extra debugging information that only GDB can use.

Unlike most other C compilers, GNU CC allows you to use `-g' with `-O'. The shortcuts taken by optimized code may occasionally produce surprising results: some variables you declared may not exist at all; flow of control may briefly move where you did not expect it; some statements may not be executed because they compute constant results or their values were already at hand; some statements may execute in different places because they were moved out of loops.

Nevertheless it proves possible to debug optimized output. This makes it reasonable to use the optimizer for programs that might have bugs.

-Idir
Append directory dir to the list of directories searched for include files.
-Ldir
Add directory dir to the list of directories to be searched for `-l'.
-llibrary
Use the library named library when linking.
-nostdinc
Do not search the standard system directories for header files. Only the directories you have specified with -I options (and the current directory, if appropriate) are searched.
-O
Optimize. Optimizing compilation takes somewhat more time, and a lot more memory for a large function.
-o file
Place output in file file.
-S
Stop after the stage of compilation proper; do not assemble. The output is an assembler code file for each non-assembler input file specified.
-Umacro
Undefine macro macro.
-Wall
Issue warnings for conditions which pertain to usage that we recommend avoiding and that we believe is easy to avoid, even in conjunction with macros.

 

FILES

file.h             C header (preprocessor) file

file.f            preprocessed C source file

file.F            F77 source file

file.s            assembly language file

file.o            object file

a.out             link edited output

TMPDIR/cc*        temporary files

LIBDIR/cpp        preprocessor

LIBDIR/f771       compiler

LIBDIR/libgcc.a   GCC subroutine library

/lib/crt[01n].o   start-up routine

/lib/libc.a       standard C library, see
intro(3)
/usr/include      standard directory for
#include files
LIBDIR/include    standard gcc directory for
#include files
LIBDIR/g77-includeadditional g77 directory for
#include

LIBDIR is usually /usr/local/lib/machine/version.
TMPDIR comes from the environment variable TMPDIR (default /usr/tmp if available, else /tmp).  

SEE ALSO

gcc(1), cpp(1), as(1), ld(1), gdb(1), adb(1), dbx(1), sdb(1).
`gcc', `cpp', `as',`ld', and `gdb' entries in info.
Using and Porting GNU CC (for version 2.0), Richard M. Stallman; The C Preprocessor, Richard M. Stallman; Debugging with GDB: the GNU Source-Level Debugger, Richard M. Stallman and Roland H. Pesch; Using as: the GNU Assembler, Dean Elsner, Jay Fenlason & friends; gld: the GNU linker, Steve Chamberlain and Roland Pesch.

 

BUGS

For instructions on how to report bugs, see the GCC manual.

 

COPYING

Copyright (c) 1991, 1992, 1993, 1994, 1995 Free Software Foundation, Inc.

Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are preserved on all copies.

Permission is granted to copy and distribute modified versions of this manual under the conditions for verbatim copying, provided that the entire resulting derived work is distributed under the terms of a permission notice identical to this one.

Permission is granted to copy and distribute translations of this manual into another language, under the above conditions for modified versions, except that this permission notice may be included in translations approved by the Free Software Foundation instead of in the original English.  

AUTHORS

See the GNU CC Manual for the contributors to GNU CC.


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
FILES
SEE ALSO
BUGS
COPYING
AUTHORS

This document was created by man2html, using the manual pages.
Time: 16:11:24 GMT, January 15, 2023