Commit 5724da63 by Jerry DeLisle

gfortran.texi: Fixed typos and grammar.

2005-07-01  Jerry DeLisle <jvdelisle@verizon.net>

    * gfortran.texi: Fixed typos and grammar.
    * invoke.texi: Fixed typos and grammar.

From-SVN: r101527
parent 892ec0bd
...@@ -172,7 +172,7 @@ not accurately reflect the status of the most recent @command{gfortran}. ...@@ -172,7 +172,7 @@ not accurately reflect the status of the most recent @command{gfortran}.
Gfortran is the GNU Fortran 95 compiler front end, Gfortran is the GNU Fortran 95 compiler front end,
designed initially as a free replacement for, designed initially as a free replacement for,
or alternative to, the unix @command{f95} command; or alternative to, the unix @command{f95} command;
@command{gfortran} is command you'll use to invoke the compiler. @command{gfortran} is the command you'll use to invoke the compiler.
Gfortran is still in an early state of development. Gfortran is still in an early state of development.
@command{gfortran} can generate code for most constructs and expressions, @command{gfortran} can generate code for most constructs and expressions,
...@@ -244,7 +244,7 @@ that also understands and accepts Fortran source code. ...@@ -244,7 +244,7 @@ that also understands and accepts Fortran source code.
The @command{gcc} command is the @dfn{driver} program for The @command{gcc} command is the @dfn{driver} program for
all the languages in the GNU Compiler Collection (GCC); all the languages in the GNU Compiler Collection (GCC);
With @command{gcc}, With @command{gcc},
you can compiler the source code of any language for you can compile the source code of any language for
which a front end is available in GCC. which a front end is available in GCC.
@item @item
...@@ -258,7 +258,7 @@ will automatically link the correct libraries to your program. ...@@ -258,7 +258,7 @@ will automatically link the correct libraries to your program.
@item @item
A collection of run-time libraries. A collection of run-time libraries.
These libraries contains the machine code needed to support These libraries contain the machine code needed to support
capabilities of the Fortran language that are not directly capabilities of the Fortran language that are not directly
provided by the machine code generated by the provided by the machine code generated by the
@command{gfortran} compilation phase, @command{gfortran} compilation phase,
...@@ -292,16 +292,15 @@ GCC used to be the GNU ``C'' Compiler, ...@@ -292,16 +292,15 @@ GCC used to be the GNU ``C'' Compiler,
but is now known as the @dfn{GNU Compiler Collection}. but is now known as the @dfn{GNU Compiler Collection}.
GCC provides the GNU system with a very versatile GCC provides the GNU system with a very versatile
compiler middle end (shared optimization passes), compiler middle end (shared optimization passes),
and with back ends (code generators) for many different and back ends (code generators) for many different
computer architectures and operating systems. computer architectures and operating systems.
The code of the middle end and back end are shared by all The code of the middle end and back end are shared by all
compiler front ends that are in the GNU Compiler Collection. compiler front ends that are in the GNU Compiler Collection.
A GCC front end is essentially a source code parser A GCC front end is essentially a source code parser
and a pass to generate a representation of the semantics and an intermediate code generator. The code generator translates the
of the program in the source code in the GCC language semantics of the source code into a language independent form called
independent intermediate language, @dfn{GENERIC}.
called @dfn{GENERIC}.
The parser takes a source file written in a The parser takes a source file written in a
particular computer language, reads and parses it, particular computer language, reads and parses it,
...@@ -314,17 +313,16 @@ or just @dfn{AST} or ``tree'' for short. ...@@ -314,17 +313,16 @@ or just @dfn{AST} or ``tree'' for short.
This data structure represents the whole program This data structure represents the whole program
or a subroutine or a function. or a subroutine or a function.
The ``tree'' is passed to the GCC middle end, The ``tree'' is passed to the GCC middle end,
which will perform optimization passes on it, which will perform optimization passes on it. The optimized AST is then
pass the optimized AST and generate assembly handed off too the back end which assembles the program unit.
for the program unit.
Different phases in this translation process can be, Different phases in this translation process can be,
and in fact @emph{are} merged in many compiler front ends. and in fact @emph{are} merged in many compiler front ends.
GNU Fortran 95 has a strict separation between the GNU Fortran 95 has a strict separation between the
parser and code generator. parser and code generator.
The goal of the gfortran project is to build a new front end for GCC: The goal of the gfortran project is to build a new front end for GCC.
A Fortran 95 front end. Specifically, a Fortran 95 front end.
In a non-gfortran installation, In a non-gfortran installation,
@command{gcc} will not be able to compile Fortran 95 source code @command{gcc} will not be able to compile Fortran 95 source code
(only the ``C'' front end has to be compiled if you want to build GCC, (only the ``C'' front end has to be compiled if you want to build GCC,
...@@ -398,7 +396,7 @@ or just a big bug.... ...@@ -398,7 +396,7 @@ or just a big bug....
The start of the GNU Fortran 95 project was announced on The start of the GNU Fortran 95 project was announced on
the GCC homepage in March 18, 2000 the GCC homepage in March 18, 2000
(even though Andy had already been working on it for a while, (even though Andy had already been working on it for a while,
or course). of course).
Gfortran is currently reaching the stage where is is able to compile real Gfortran is currently reaching the stage where is is able to compile real
world programs. However it is still under development and has many rough world programs. However it is still under development and has many rough
...@@ -487,7 +485,7 @@ Flag for defining the kind number for default logicals. ...@@ -487,7 +485,7 @@ Flag for defining the kind number for default logicals.
@item @item
User-specified alignment rules for structures. User-specified alignment rules for structures.
@item @item
Flag to generate a @code{Makefile} info. Flag to generate @code{Makefile} info.
@item @item
Automatically extend single precision constants to double. Automatically extend single precision constants to double.
...@@ -534,10 +532,10 @@ dereference instead of segfaulting. There was some discussion about this ...@@ -534,10 +532,10 @@ dereference instead of segfaulting. There was some discussion about this
option in the g95 development mailing list. option in the g95 development mailing list.
@item @item
Allow setting default unit number. Allow setting the default unit number.
@item @item
Option to initialize of otherwise uninitialized integer and floating Option to initialize otherwise uninitialized integer and floating
point variables. point variables.
@item @item
...@@ -566,7 +564,7 @@ action. ...@@ -566,7 +564,7 @@ action.
Set precision for fp units that support it (i387). Set precision for fp units that support it (i387).
@item @item
Variables for setting fp rounding mode. Variable for setting fp rounding mode.
@item @item
Variable to fill uninitialized variables with a user-defined bit Variable to fill uninitialized variables with a user-defined bit
...@@ -686,7 +684,7 @@ Examples of standard conforming code equivalent to the above example, are: ...@@ -686,7 +684,7 @@ Examples of standard conforming code equivalent to the above example, are:
@section Extensions to namelist @section Extensions to namelist
@cindex Namelist @cindex Namelist
@command{gfortran} fully supports the fortran95 standard for namelist io @command{gfortran} fully supports the Fortran 95 standard for namelist I/O
including array qualifiers, substrings and fully qualified derived types. including array qualifiers, substrings and fully qualified derived types.
The output from a namelist write is compatible with namelist read. The The output from a namelist write is compatible with namelist read. The
output has all names in upper case and indentation to column 1 after the output has all names in upper case and indentation to column 1 after the
...@@ -727,7 +725,7 @@ had been called: ...@@ -727,7 +725,7 @@ had been called:
CH=abcd, / CH=abcd, /
@end smallexample @end smallexample
To aid this dialog, when input is from stdin, errors produce send their To aid this dialog, when input is from stdin, errors send their
messages to stderr and execution continues, even if IOSTAT is set. messages to stderr and execution continues, even if IOSTAT is set.
@node X format descriptor @node X format descriptor
......
...@@ -464,8 +464,8 @@ debugging options. ...@@ -464,8 +464,8 @@ debugging options.
@cindex INCLUDE directive @cindex INCLUDE directive
@cindex directive, INCLUDE @cindex directive, INCLUDE
There options affect how affect how @command{gfortran} searches These options affect how @command{gfortran} searches
for files specified via the @code{INCLUDE} directive, and where it searches for files specified by the @code{INCLUDE} directive and where it searches
for previously compiled modules. for previously compiled modules.
It also affects the search paths used by @command{cpp} when used to preprocess It also affects the search paths used by @command{cpp} when used to preprocess
...@@ -573,10 +573,8 @@ Do not transform names of entities specified in the Fortran ...@@ -573,10 +573,8 @@ Do not transform names of entities specified in the Fortran
source file by appending underscores to them. source file by appending underscores to them.
With @option{-funderscoring} in effect, @command{gfortran} appends one With @option{-funderscoring} in effect, @command{gfortran} appends one
underscore to external names with no underscores. underscore to external names with no underscores. This is done to ensure
compatibility with code produced by many UNIX Fortran compilers.
This is done to ensure compatibility with code produced by many
UNIX Fortran compilers.
@emph{Caution}: The default behavior of @command{gfortran} is @emph{Caution}: The default behavior of @command{gfortran} is
incompatible with @command{f2c} and @command{g77}, please use the incompatible with @command{f2c} and @command{g77}, please use the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment