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.

Compiler and Linker OptionsWhen -Kthreadprivate is specified, all named common blocks become private to the thread.This option is only active when --openmp is specified.-K[no]threadsafeGenerate code that is thread-safeCompile only. Default: -KnothreadsafeUse the -Kthreadsafe option to generate code that will execute safely in a multithreadedenvironment.-Ktiling[=n]Apply loop tiling optimizationsCompile only. Default: do not apply optimizationsThe -Ktiling option allows the compiler to apply loop tiling optimizations. n is the tile size,and is a number between between 2 and 9999. If n is omitted, the compiler determines theoptimimum tile size.The -Ktiling option is only valid at optimization levels --o2 or --o3.-l (lower-case L) nameSpecify Library FileLink only. Default: none.Specify a library file whose name is of the form libname.a or libname.so. Multiplelibrary files may be specified with multiple -l options. Libraries are searched in the order thatthey appear on the command line (See “Linking Rules” on page 44.) This option and its argumentare passed directly to the linker.-L pathLibrary Search PathLink only. Default: LD_LIBRARY_PATH variable.The -L option adds path to the list of directories that the linker searches for libraries, i.e.,files beginning with “lib” and having the extension .a or .so. Note: if “.” (current directory)is not specified in your LD_LIBRARY_PATH variable, then you must specify -L. onthe command line to search for files in the current directory. This option and its argumentare passed directly to the linker.ExampleThe following command line links main.o with libmine.a and libyours.so (residing in adjacentdirectories mylibs and yourlibs, respectively):lfc main.o -L../mylibs -lmine -L../yourlibs -lyoursRemember that, by default, the linker searches for shared libraries first.<strong>Lahey</strong>/Fujitsu <strong>Linux</strong>64 Fortran User’s <strong>Guide</strong> 29

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

Saved successfully!

Ooh no, something went wrong!