📄 fort77.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta name="generator" content="HTML Tidy, see www.w3.org"><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><link type="text/css" rel="stylesheet" href="style.css"><!-- Generated by The Open Group's rhtm tool v1.2.1 --><!-- Copyright (c) 2001-2004 IEEE and The Open Group, All Rights Reserved --><title>fort77</title></head><body bgcolor="white"><script type="text/javascript" language="JavaScript" src="../jscript/codes.js"></script><basefont size="3"> <a name="fort77"></a> <a name="tag_04_57"></a><!-- fort77 --> <!--header start--><center><font size="2">The Open Group Base Specifications Issue 6<br>IEEE Std 1003.1, 2004 Edition<br>Copyright © 2001-2004 The IEEE and The Open Group, All Rights reserved.</font></center><!--header end--><hr size="2" noshade><h4><a name="tag_04_57_01"></a>NAME</h4><blockquote>fort77 - FORTRAN compiler (<b>FORTRAN</b>)</blockquote><h4><a name="tag_04_57_02"></a>SYNOPSIS</h4><blockquote class="synopsis"><div class="box"><code><tt><sup>[<a href="javascript:open_code('FD')">FD</a>]</sup> <img src="../images/opt-start.gif" alt="[Option Start]" border="0"> fort77</tt> <b>[</b><tt>-c</tt><b>][</b><tt>-g</tt><b>][</b><tt>-L</tt><i>directory</i><b>]</b><tt>...</tt> <b>[</b><tt>-O</tt> <i>optlevel</i><b>][</b><tt>-o</tt><i>outfile</i><b>][</b><tt>-s</tt><b>][</b><tt>-w</tt><b>]<br></b> <tt> </tt> <b></b><i>operand</i><tt>... <img src="../images/opt-end.gif" alt="[Option End]"border="0"></tt></code></div></blockquote><h4><a name="tag_04_57_03"></a>DESCRIPTION</h4><blockquote><p>The <i>fort77</i> utility is the interface to the FORTRAN compilation system; it shall accept the full FORTRAN-77 languagedefined by the ANSI X3.9-1978 standard. The system conceptually consists of a compiler and link editor. The files referencedby <i>operand</i>s are compiled and linked to produce an executable file. It is unspecified whether the linking occurs entirelywithin the operation of <i>fort77</i>; some implementations may produce objects that are not fully resolved until the file isexecuted.</p><p>If the <b>-c</b> option is present, for all pathname operands of the form <i>file</i> <b>.f</b>, the files:</p><pre><tt>$(basename</tt> <i>pathname</i><tt>.f).o</tt></pre><p>shall be created or overwritten as the result of successful compilation. If the <b>-c</b> option is not specified, it isunspecified whether such <b>.o</b> files are created or deleted for the <i>file</i> <b>.f</b> operands.</p><p>If there are no options that prevent link editing (such as <b>-c</b>) and all operands compile and link without error, theresulting executable file shall be written into the file named by the <b>-o</b> option (if present) or to the file <b>a.out</b>.The executable file shall be created as specified in the System Interfaces volume of IEEE Std 1003.1-2001, except thatthe file permissions shall be set to:</p><blockquote><pre>S_IRWXO | S_IRWXG | S_IRWXU</pre></blockquote><p>and that the bits specified by the <i>umask</i> of the process shall be cleared.</p></blockquote><h4><a name="tag_04_57_04"></a>OPTIONS</h4><blockquote><p>The <i>fort77</i> utility shall conform to the Base Definitions volume of IEEE Std 1003.1-2001, <a href="../basedefs/xbd_chap12.html#tag_12_02">Section 12.2, Utility Syntax Guidelines</a>, except that:</p><ul><li><p>The <b>-l</b> <i>library</i> operands have the format of options, but their position within a list of operands affects the orderin which libraries are searched.</p></li><li><p>The order of specifying the multiple <b>-L</b> options is significant.</p></li><li><p>Conforming applications shall specify each option separately; that is, grouping option letters (for example, <b>-cg</b>) neednot be recognized by all implementations.</p></li></ul><p>The following options shall be supported:</p><dl compact><dt><b>-c</b></dt><dd>Suppress the link-edit phase of the compilation, and do not remove any object files that are produced.</dd><dt><b>-g</b></dt><dd>Produce symbolic information in the object or executable files; the nature of this information is unspecified, and may bemodified by implementation-defined interactions with other options.</dd><dt><b>-s</b></dt><dd>Produce object or executable files, or both, from which symbolic and other information not required for proper execution usingthe <i>exec</i> family of functions defined in the System Interfaces volume of IEEE Std 1003.1-2001 has been removed(stripped). If both <b>-g</b> and <b>-s</b> options are present, the action taken is unspecified.</dd><dt><b>-o </b> <i>outfile</i></dt><dd>Use the pathname <i>outfile</i>, instead of the default <b>a.out</b>, for the executable file produced. If the <b>-o</b> optionis present with <b>-c</b>, the result is unspecified.</dd><dt><b>-L </b> <i>directory</i></dt><dd>Change the algorithm of searching for the libraries named in <b>-l</b> operands to look in the directory named by the<i>directory</i> pathname before looking in the usual places. Directories named in <b>-L</b> options shall be searched in thespecified order. At least ten instances of this option shall be supported in a single <i>fort77</i> command invocation. If adirectory specified by a <b>-L</b> option contains a file named <b>libf.a</b>, the results are unspecified.</dd><dt><b>-O </b> <i>optlevel</i></dt><dd>Specify the level of code optimization. If the <i>optlevel</i> option-argument is the digit <tt>'0'</tt>, all special codeoptimizations shall be disabled. If it is the digit <tt>'1'</tt>, the nature of the optimization is unspecified. If the <b>-O</b>option is omitted, the nature of the system's default optimization is unspecified. It is unspecified whether code generated in thepresence of the <b>-O</b> 0 option is the same as that generated when <b>-O</b> is omitted. Other <i>optlevel</i> values may besupported.</dd><dt><b>-w</b></dt><dd>Suppress warnings.</dd></dl><p>Multiple instances of <b>-L</b> options can be specified.</p></blockquote><h4><a name="tag_04_57_05"></a>OPERANDS</h4><blockquote><p>An <i>operand</i> is either in the form of a pathname or the form <b>-l</b> <i>library</i>. At least one operand of the pathnameform shall be specified. The following operands shall be supported:</p><dl compact><dt><i>file.</i><b>f</b></dt><dd>The pathname of a FORTRAN source file to be compiled and optionally passed to the link editor. The filename operand shall be ofthis form if the <b>-c</b> option is used.</dd><dt><i>file.</i><b>a</b></dt><dd>A library of object files typically produced by <a href="../utilities/ar.html"><i>ar</i></a>, and passed directly to the linkeditor. Implementations may recognize implementation-defined suffixes other than <b>.a</b> as denoting object file libraries.</dd><dt><i>file.</i><b>o</b></dt><dd>An object file produced by <i>fort77</i> <b>-c</b> and passed directly to the link editor. Implementations may recognizeimplementation-defined suffixes other than <b>.o</b> as denoting object files.</dd></dl><p>The processing of other files is implementation-defined.</p><dl compact><dt><b>-l </b> <i>library</i></dt><dd>(The letter ell.) Search the library named: <pre><tt>lib</tt><i>library</i><tt>.a</tt></pre><p>A library is searched when its name is encountered, so the placement of a <b>-l</b> operand is significant. Several standardlibraries can be specified in this manner, as described in the EXTENDED DESCRIPTION section. Implementations may recognizeimplementation-defined suffixes other than <b>.a</b> as denoting libraries.</p></dd></dl></blockquote><h4><a name="tag_04_57_06"></a>STDIN</h4><blockquote><p>Not used.</p></blockquote><h4><a name="tag_04_57_07"></a>INPUT FILES</h4><blockquote><p>The input file shall be one of the following: a text file containing FORTRAN source code; an object file in the format producedby <i>fort77</i> <b>-c</b>; or a library of object files, in the format produced by archiving zero or more object files, using <ahref="../utilities/ar.html"><i>ar</i></a>. Implementations may supply additional utilities that produce files in these formats.Additional input files are implementation-defined.</p><p>A <tab> encountered within the first six characters on a line of source code shall cause the compiler to interpret thefollowing character as if it were the seventh character on the line (that is, in column 7).</p></blockquote><h4><a name="tag_04_57_08"></a>ENVIRONMENT VARIABLES</h4><blockquote><p>The following environment variables shall affect the execution of <i>fort77</i>:</p><dl compact><dt><i>LANG</i></dt><dd>Provide a default value for the internationalization variables that are unset or null. (See the Base Definitions volume ofIEEE Std 1003.1-2001, <a href="../basedefs/xbd_chap08.html#tag_08_02">Section 8.2, Internationalization Variables</a> forthe precedence of internationalization variables used to determine the values of locale categories.)</dd><dt><i>LC_ALL</i></dt><dd>If set to a non-empty string value, override the values of all the other internationalization variables.</dd><dt><i>LC_CTYPE</i></dt><dd>Determine the locale for the interpretation of sequences of bytes of text data as characters (for example, single-byte asopposed to multi-byte characters in arguments and input files).</dd><dt><i>LC_MESSAGES</i></dt><dd>Determine the locale that should be used to affect the format and contents of diagnostic messages written to standarderror.</dd><dt><i>NLSPATH</i></dt><dd><sup>[<a href="javascript:open_code('XSI')">XSI</a>]</sup> <img src="../images/opt-start.gif" alt="[Option Start]" border="0">Determine the location of message catalogs for the processing of <i>LC_MESSAGES .</i> <img src="../images/opt-end.gif" alt="[Option End]" border="0"></dd><dt><i>TMPDIR</i></dt><dd>Determine the pathname that should override the default directory for temporary files, if any.</dd></dl></blockquote><h4><a name="tag_04_57_09"></a>ASYNCHRONOUS EVENTS</h4><blockquote><p>Default.</p></blockquote><h4><a name="tag_04_57_10"></a>STDOUT</h4><blockquote><p>Not used.</p></blockquote><h4><a name="tag_04_57_11"></a>STDERR</h4><blockquote>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -