02.07.2014 Views

Intel(R) Fortran Compiler for Linux* Systems User's Guide Volume I ...

Intel(R) Fortran Compiler for Linux* Systems User's Guide Volume I ...

Intel(R) Fortran Compiler for Linux* Systems User's Guide Volume I ...

SHOW MORE
SHOW LESS

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

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

<strong>Intel</strong>® <strong>Fortran</strong> <strong>Compiler</strong> <strong>for</strong> <strong>Linux*</strong> <strong>Systems</strong> <strong>User's</strong> <strong>Guide</strong> <strong>Volume</strong> I: Building<br />

Applications<br />

• Quotation mark character<br />

A quotation mark (") character is recognized as starting an octal constant<br />

("0..7) instead of a character literal ("...").<br />

• Deleted records in relative files<br />

When a record in a relative file is deleted, the first byte of that record is set<br />

to a known character (currently ' @ ' ). Attempts to read that record later<br />

result in ATTACCNON errors. The rest of the record (the whole record, if -<br />

vms is not specified) is set to nulls <strong>for</strong> un<strong>for</strong>matted files and spaces <strong>for</strong><br />

<strong>for</strong>matted files.<br />

• ENDFILE records<br />

When an ENDFILE is per<strong>for</strong>med on a sequential unit, an actual 1-byte<br />

record containing a Ctrl/Z is written to the file. If -vms is not specified, an<br />

internal ENDFILE flag is set and the file is truncated.<br />

The -vms option does not affect ENDFILE on relative files: these files are<br />

truncated.<br />

• Implied logical unit numbers<br />

The -vms option enables <strong>Intel</strong> <strong>Fortran</strong> to recognize certain environment<br />

variables at run time <strong>for</strong> ACCEPT, PRINT, and TYPE statements and <strong>for</strong><br />

READ and WRITE statements that do not specify a unit number (such as<br />

READ (*,1000)).<br />

• Treatment of blanks in input<br />

The -vms option causes the defaults <strong>for</strong> the keyword BLANK in OPEN<br />

statements to become ' NULL ' <strong>for</strong> an explicit OPEN and ' ZERO ' <strong>for</strong> an<br />

implicit OPEN of an external or internal file. For more in<strong>for</strong>mation, see the<br />

description of the OPEN statement.<br />

• OPEN statement effects<br />

Carriage control defaults to FORTRAN if the file is <strong>for</strong>matted, and the unit<br />

is connected to a terminal (checked by means of isatty(3) ). Otherwise,<br />

carriage control defaults to LIST.<br />

The -vms option affects the record length <strong>for</strong> direct access and relative<br />

organization files. The buffer size is increased by 1 to accommodate the<br />

deleted record character.<br />

• Reading deleted records and ENDFILE records<br />

The run-time direct access READ routine checks the first byte of the<br />

retrieved record. If this byte is ' @ ' or NULL ("\0"), then an ATTACCNON<br />

error is returned.<br />

The run-time sequential access READ routine checks to see if the record<br />

it just read is one byte long and contains a Ctrl/Z. If this is true, it returns<br />

EOF.<br />

Compilation Diagnostics Options<br />

The compilation diagnostics options let you specify the kinds of diagnostic<br />

messages (warnings and errors) you want to receive.<br />

40

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

Saved successfully!

Ooh no, something went wrong!