28.11.2012 Views

LF Fortran Express User's Guide - Lahey Computer Systems, Inc.

LF Fortran Express User's Guide - Lahey Computer Systems, Inc.

LF Fortran Express User's Guide - Lahey Computer Systems, Inc.

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.

Chapter 2 Developing with <strong>LF</strong> <strong>Fortran</strong><br />

-[N]DAL<br />

Deallocate Allocatables<br />

Compile only. Default: -dal<br />

Specify -dal to deallocate allocated arrays that do not appear in DEALLOCATE or SAVE<br />

statements when a RETURN, STOP, or END statement is encountered in the program unit<br />

containing the allocatable array. Note that -ndal will suppress automatic deallocation for<br />

<strong>Fortran</strong> 95 files (automatic deallocation is standard behavior in <strong>Fortran</strong> 95).<br />

-[N]DBL<br />

Double<br />

Compile only. Default: -ndbl<br />

Specify -dbl to extend all single-precision REAL and single-precision COMPLEX variables,<br />

arrays, constants, and functions to 64 bit double-precision. If you use -dbl, all source<br />

files (including modules) in a program should be compiled with -dbl. Specifying -dbl may<br />

or may not result in a somewhat slower executable.<br />

-[N]DLL<br />

Dynamic Link Library<br />

Link only. Default: -ndll<br />

Specify -dll to create a 32-bit Windows dynamic link library (for more information, see<br />

”Dynamically linked applications” on page 54).<br />

-[N]F95<br />

<strong>Fortran</strong> 95 Conformance<br />

Compile only. Default: -nf95<br />

Specify -f95 to generate warnings when the compiler encounters non standard <strong>Fortran</strong> 95<br />

code.<br />

Note that -nf95 allows any intrinsic data type to be equivalenced to any other intrinsic type.<br />

-FILE filename<br />

Filename<br />

Compile and link. Default: not present<br />

Precede the name of a file with -file to ensure the driver will interpret filename as the name<br />

of a file and not an argument to an option.<br />

Example<br />

On the following command line, bill.f90 is correctly interpreted as a source file:<br />

34 <strong>LF</strong> <strong>Fortran</strong> <strong>Express</strong> User’s <strong>Guide</strong><br />

<strong>LF</strong>95 -checksum -file bill.f90

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

Saved successfully!

Ooh no, something went wrong!