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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 2 Developing with LF64Controlling CompilationDuring the compilation phase, the driver submits specified source files to the compiler forcompilation and optimization. If the -c, compile only, option is specified, processing willstop after the compiler runs and objects and/or modules are created (if necessary). See “-[n]c” on page 18. Otherwise, processing continues with linking and creation of theexecutable program or library file.Errors in CompilationIf the compiler encounters errors or questionable code, you may receive any of the followingtypes of diagnostic messages (a letter precedes each message, indicating its severity):U:Unrecoverable error messages indicate it is not practical to continuecompilation.S:Serious error messages indicate the compilation will continue, but no object filewill be generated.W:Warning messages indicate probable programming errors that are not seriousenough to prevent execution. Can be suppressed with the --nwarn or --swm option.I:Informational messages suggest possible areas for improvement in your code andgive details of optimizations performed by the compiler. These are normally suppressed,but can be seen by specifying the --info option (see “--[n]info” on page 26).If no unrecoverable or serious errors are detected by the compiler, the error return code is setto zero (see “Return Codes from the Driver” on page 14). Unrecoverable or serious errorsdetected by the compiler (improper syntax, for example) terminate the build process. Anobject file is not created.Compiler and Linker OptionsYou can control compilation and linking by using any of the following option options.Options that use a single hyphen are case-sensitive. Some options apply only to the compilationphase, others to the linking phase, and still others (such as -g) to both phases; this isindicated next to the name of the option. If compilation and linking are performed separately(i.e., in separate command lines), then options that apply to both phases must be included ineach command line.Most LF64 options begin with two hyphens and are self-descriptive. Commonly used singlehyphenoptions are provided (-I, -l, -L, -g, -o, -O, -c, etc.) for compatibility with other<strong>Linux</strong> products (see descriptions below).16 <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!