10.07.2015 Views

PGI Fortran Reference manual - The Portland Group

PGI Fortran Reference manual - The Portland Group

PGI Fortran Reference manual - The Portland Group

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Language OverviewCharacterDescription\0 null\'apostrophe (does not terminate a string)\" double quotes (does not terminate a string)\\ \\x x, where x is any other character\dddcharacter with the given octal representation.1.3. Free Form FormattingUsing free form formatting, columns are not significant for the elements of a <strong>Fortran</strong> line, and ablank or series of blanks or tabs and the context of a token specify the token type. <strong>The</strong> followingrules apply to free form formatting:‣ Up to 132 characters are valid per line, and the compiler option –Mextend does not apply.‣ A single <strong>Fortran</strong> line may contain multiple statements, with the ; (semicolon) separatingmultiple statements on a single line.‣ Free format labels are valid at the start of a line.‣ <strong>The</strong> label must be separated from the remaining statements on the line by at least oneblank or a .‣ Labels consist of a numeric field drawn from digits 0 to 9.‣ <strong>The</strong> label cannot be more than 5 characters.‣ Either a blank line, or the ! character following a <strong>Fortran</strong> line indicates a comment. <strong>The</strong><strong>Fortran</strong> text does not contain any of the characters after the !.‣ <strong>The</strong> & character at the end of a line means the following line represents a continuation line.‣ If a continuation line starts with the & character, then the characters following the & arethe start of the continuation line.‣ If the continuation line does not start with a &, then all characters on the line are part ofthe continuation line, including any initial blanks or tabs.A single <strong>Fortran</strong> line may contain multiple statements. <strong>The</strong> ; (semicolon) separates multiplestatements on a single line. Free format labels are valid at the start of a line, as long as the labelis separated from the remaining statements on the line by at least one blank or a . Labelsconsist of a numeric field drawn from digits 0 to 9. <strong>The</strong> label cannot be more than 5 characters.1.4. Fixed FormattingThis section describes the two types of fixed formatting that <strong>PGI</strong> <strong>Fortran</strong> compilers support:column formatting and tab formatting.<strong>PGI</strong> <strong>Fortran</strong> <strong>Reference</strong> Guide 4

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!