www.delorie.com/gnu/docs/gcc/g77_345.html   search  
 
Buy the book!


Using and Porting GNU Fortran

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

9.1 Source Form

GNU Fortran accepts programs written in either fixed form or free form.

Fixed form corresponds to ANSI FORTRAN 77 (plus popular extensions, such as allowing tabs) and Fortran 90's fixed form.

Free form corresponds to Fortran 90's free form (though possibly not entirely up-to-date, and without complaining about some things that for which Fortran 90 requires diagnostics, such as the spaces in the constant in `R = 3 . 1').

The way a Fortran compiler views source files depends entirely on the implementation choices made for the compiler, since those choices are explicitly left to the implementation by the published Fortran standards. GNU Fortran currently tries to be somewhat like a few popular compilers (f2c, Digital ("DEC") Fortran, and so on).

This section describes how g77 interprets source lines.

9.1.1 Carriage Returns  Carriage returns ignored.
9.1.2 Tabs  Tabs converted to spaces.
9.1.3 Short Lines  Short lines padded with spaces (fixed-form only).
9.1.4 Long Lines  Long lines truncated.
9.1.5 Ampersand Continuation Line  Special Continuation Lines.


  webmaster     delorie software   privacy  
  Copyright 2003   by The Free Software Foundation     Updated Jun 2003