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 />

{ -O0 | -O1 | -O2 }<br />

Optimization Level<br />

Compile only. Default: -o1<br />

Specify -o0 to perform no optimization. -o0 is automatically turned on when the -g option<br />

or the -chk option is specified. see “-[N]G” on page 35<br />

Specify -o1 to perform optimization of object code.<br />

Specify -o2 to perform additional optimizations. This optimization level implements full<br />

unrolling of nested loops, loop splitting to promote loop exchange, and array optimizations.<br />

Use of the -o2 option may significantly impact compilation speed. Use the -unroll option to<br />

limit the level of loop unrolling.<br />

-O filename<br />

Object Filename<br />

Compile only. Default: name of the source file with the extension .OBJ<br />

Specify -o filename to override the default object file name. The compiler produces an<br />

object file with the specified name. If multiple source file names are specified explicitly or<br />

by wildcards, -o causes the driver to report a fatal error.<br />

-OUT filename<br />

Output Filename<br />

Link only. Default: the name of the first object or source file.<br />

If -out is not specified, the output file is not automatically placed in the current directory.<br />

By default it is placed in the same directory as the first source or object file listed on the command<br />

line.<br />

This option takes a single argument, which is the path and name of the output file. If filename<br />

contains no path information, the output file is placed in the current directory.<br />

If the file extension .EXE is specified, an executable file will be created. If no extension is<br />

specified with the -ndll option (default), the .exe extension is assumed.<br />

If the file extension .dll is specified, a dynamic-link library will be created. If no extension<br />

is specified with the -dll option, the .dll extension is assumed.<br />

If the file extension .LIB is specified, and the specified library file does not exist, it will be<br />

created. If the specified library already exists, it will be updated.<br />

Examples<br />

<strong>LF</strong>95 hello.obj -out d:\<strong>LF</strong>95\hello.exe<br />

<strong>LF</strong>95 main.obj -out maintest<br />

-[N]PAUSE<br />

Pause After Program Completion<br />

Compile only. Default: -npause<br />

40 <strong>LF</strong> <strong>Fortran</strong> <strong>Express</strong> User’s <strong>Guide</strong>

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

Saved successfully!

Ooh no, something went wrong!