12.07.2015 Views

LF95 Linux User's Guide - Lahey Computer Systems

LF95 Linux User's Guide - Lahey Computer Systems

LF95 Linux User's Guide - Lahey Computer Systems

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 LF64--[n]pcaProtect Constant ArgumentsCompile only. Default: --npcaSpecify --pca to prevent invoked subprograms from storing into constants. The --pca optionwill silently protect constant arguments and does not produce any warnings.If --pca is specified in conjunction with --chk (a), the action of --chk (a) is overridden by theaction of --pca. In this case, no error is generated when a dummy argument that is associatedwith a constant actual argument is assigned a new value in the subprogram.Examplecall sub(5)print *, 5endsubroutine sub(i)i = i + 1endThis example would print 5 using --pca and 6 using --npca.--[n]prefetchGenerate prefetch optimizationsCompile only. Default: --nprefetchThe --prefetch option directs the compiler to generate data prefetching instructions.--[n]privateDefault Module AccessibilityCompile only. Default: --nprivateSpecify --private to change the default accessibility of module entities from PUBLIC to PRI-VATE (see “PUBLIC” and “PRIVATE” statements in the Language Reference).--[n]quadQuad PrecisionCompile only. Default: --nquadSpecify --quad to extend all single-precision REAL and single-precision COMPLEX variables,arrays, constants, and functions to double-precision, and double-precision REAL anddouble-precision COMPLEX variables, arrays, constants, and functions to REAL(KIND=16) and COMPLEX (KIND=16) respectively. If you use --quad, all source files(including modules) in a program should be compiled with --quad. Specifying --quad willusually result in significantly slower executables.Specifying --quad forces --dbl. Specifying --dbl --quad will not raise single-precision entitiesto quad precision.36 <strong>Lahey</strong>/Fujitsu <strong>Linux</strong>64 Fortran User’s <strong>Guide</strong>

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

Saved successfully!

Ooh no, something went wrong!