⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 423-427.html

📁 linux-unix130.linux.and.unix.ebooks130 linux and unix ebookslinuxLearning Linux - Collection of 12 E
💻 HTML
字号:
<HTML>

<HEAD>

<TITLE>Linux in Plain English:Linux Commands Organized by Group</TITLE>

<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
<SCRIPT>
<!--
function displayWindow(url, width, height) {
        var Win = window.open(url,"displayWindow",'width=' + width +
',height=' + height + ',resizable=1,scrollbars=yes');
}
//-->
</SCRIPT>
</HEAD>

 -->




<!--ISBN=1558285423//-->

<!--TITLE=Linux in Plain English//-->

<!--AUTHOR=Patrick Volkerding//-->

<!--AUTHOR=Kevin Reichard//-->

<!--PUBLISHER=IDG Books Worldwide, Inc.//-->

<!--IMPRINT=M & T Books//-->

<!--CHAPTER=5//-->

<!--PAGES=423-427//-->

<!--UNASSIGNED1//-->

<!--UNASSIGNED2//-->



<CENTER>

<TABLE BORDER>

<TR>

<TD><A HREF="414-423.html">Previous</A></TD>

<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>

<TD><A HREF="428-435.html">Next</A></TD>

</TR>

</TABLE>

</CENTER>

<P><BR></P>

<P><FONT SIZE="+1"><B><I>OPTIONS</I></B></FONT></P>

<TABLE WIDTH="100%">

<TR>

<TD WIDTH="20%"><B>-a</B>

<TD WIDTH="80%">Adds new files after a membername.

<TR>

<TD VALIGN="TOP"><B>-b</B>

<TD>Adds new files before a membername. This is the same as the <B>i</B> argument.

<TR>

<TD><B>-c</B>

<TD>Creates a new archive.

<TR>

<TD VALIGN="TOP"><B>-d</B>

<TD>Deletes specified files. If you run this option and don&#146;t specify files, nothing will be deleted.

<TR>

<TD><B>-f</B>

<TD>Truncates the names of a file to a specific length.

<TR>

<TD VALIGN="TOP"><B>-i</B>

<TD>Inserts new files before a membername. This is the same as the <B>b</B> argument.

<TR>

<TD VALIGN="TOP"><B>-m</B>

<TD>Moves files within an archive. At times the specific order of files is important in an archive, especially when programming libraries are involved. The named files will be moved to the end of the archive.

<TR>

<TD VALIGN="TOP"><B>-o</B>

<TD>Uses original dates when extracting files. This is essential if you want to maintain the original timestamps, because <B>ar</B> will apply the timestamp at the time of extraction to the files.

<TR>

<TD><B>-p</B>

<TD>Prints the names of the file within the archive.

<TR>

<TD VALIGN="TOP"><B>-q</B>

<TD>Quick append, which means that specified files are added to the end of the archive. This option is not countered by any other options (such as <B>a</B>, <B>b</B>, and <B>i</B>), since all new files are automatically placed at the end of the archive. However, the archive&#146;s symbol-table index is not updated, which means that the <B>s</B> argument or the <B>ars</B> or <B>ranlib</B> command must be used to update it.

<TR>

<TD VALIGN="TOP"><B>-r</B>

<TD>Replaces files within the archive. An existing file within the archive with the same name is automatically deleted.

<TR>

<TD VALIGN="TOP"><B>-s</B>

<TD>Updates the symbol-table index. This is the equivalent of the <B>ranlib</B> command.

<TR>

<TD VALIGN="TOP"><B>-t</B>

<TD>Lists a table with the names of files within the archive, or it can match a list of files with the names of the files within the archive.

<TR>

<TD VALIGN="TOP"><B>-u</B>

<TD>Inserts only newer files when replacing files with the <B>r</B> argument.

<TR>

<TD VALIGN="TOP"><B>-v</B>

<TD>Tells <B>ar</B> to work in verbose mode, listing the files within the archive that are acted upon.

<TR>

<TD><B>-x</B>

<TD>Extracts files from the archive.

</TABLE>

<P><FONT SIZE="+1"><B><I>RELATED COMMANDS</I></B></FONT></P>

<DL>

<DD><B>ars</B>

<DD><B>ranlib</B>

</DL>

<P><FONT SIZE="+1"><B>as......<TT>Assemble</TT></B></FONT></P>

<P><B>as</B> <I>option(s) files</I></P>

<P><FONT SIZE="+1"><B><I>PURPOSE</I></B></FONT></P>

<P>The GNU <B>assembler</B> command creates object files from assembly files. Basically, it&#146;s used to assemble files created with the gcc C compiler before they are linked with <B>ld</B>.</P>

<P>You can either assemble from an existing C file or from standard input (your keyboard). If you&#146;re inputting a file via keyboard, you&#146;ll need to use <B>Ctrl-D</B> to tell <B>as</B> that input has ended.</P>

<P><FONT SIZE="+1"><B><I>OPTIONS</I></B></FONT></P>

<TABLE WIDTH="100%">

<TR>

<TD WIDTH="25%" VALIGN="TOP">-<B>a</B>

<TD COLSPAN="2">Turns on assembly listings, which is output as files are assembled. However, there are a number of other options that can be combined with:

<TR>

<TD>

<TD WIDTH="15%"><B>-ad</B>

<TD WIDTH="60%">Omits debugging directives.

<TR>

<TD>

<TD VALIGN="TOP"><B>-ah</B>

<TD>Includes high-level source code if the source file can be found and the code was compiled with <B>-g</B>.

<TR>

<TD>

<TD><B>-al</B>

<TD>Includes assembly listing.

<TR>

<TD>

<TD><B>-an</B>

<TD>Omits form processing.

<TR>

<TD>

<TD><B>-as</B>

<TD>Includes symbol listing.

<TR>

<TD>

<TD><B>-afile</B>

<TD>Specifies listing filename.

<TR>

<TD VALIGN="TOP"><B>--defsym</B>

<TD COLSPAN="2">Defines the symbol SUM to equal <I>VALUE</I> (an integer <B>SYM=<I>VALUE</I></B> constant) before a file is assembled.

<TR>

<TD VALIGN="TOP"><B>-f</B>

<TD COLSPAN="2">Assembles in fast mode, which skips preprocessing in those cases where the source is compiler output.

<TR>

<TD><B>-I<I>path</I></B>

<TD COLSPAN="2">Adds <I>path</I> to the list of .include directives.

<TR>

<TD VALIGN="TOP"><B>-K</B>

<TD COLSPAN="2">Warns when difference tables are altered for long displacements.

<TR>

<TD><B>-L</B>

<TD COLSPAN="2">Keeps local symbols in symbol tables, starting with L.

<TR>

<TD><B>-M</B>

<TD COLSPAN="2">Assembles in MRI compatibility mode.

<TR>

<TD><B>-o <I>objfile</I></B>

<TD COLSPAN="2">Specifies the object-file output as <I>objfile</I>.

<TR>

<TD><B>-R</B>

<TD COLSPAN="2">Folds data section into text section.

<TR>

<TD><B>-v</B>

<TD COLSPAN="2">Returns as version.

<TR>

<TD><B>-W</B>

<TD COLSPAN="2">Suppresses warnings.

<TR>

<TD VALIGN="TOP"><B>--| <I>files</I></B>

<TD COLSPAN="2">Source files to assemble (<B>| files</B>) or assemble from standard input (--).

</TABLE>

<P><FONT SIZE="+1"><B><I>RELATED COMMANDS</I></B></FONT></P>

<DL>

<DD><B>gcc</B>

<DD><B>ld</B>

</DL>

<P><FONT SIZE="+1"><B>bison......<TT>Parser Generator</TT></B></FONT></P>

<IMG SRC="images/05-136i.jpg"><P><B>bison</B> <I>option(s)</I></P>

<P><FONT SIZE="+1"><B><I>PURPOSE</I></B></FONT></P>

<P>The <B>bison</B> takes command the grammar specification in the file <I>filename.y</I> and generates an LR parser for it. The parsers consist of a set of LALR parsing tables and a driver routine written in C. Parse tables and the driver routine are usually written to the file <B>y.tab.c</B>.</P>

<P>It&#146;s a GNU replacement for the <B>yacc</B> command. There are a few differences between <B>bison</B> and <B>yacc</B>: for instance, generated files do not have fixed names, but instead use the prefix of the input file. You&#146;ll want to check the online-manual pages for more details.</P>

<P><FONT SIZE="+1"><B><I>OPTIONS</I></B></FONT></P>

<TABLE WIDTH="100%">

<TR>

<TD WIDTH="25%" VALIGN="TOP"><B>-b prefix</B>

<TD WIDTH="75%">Changes the prefix prepended to output filenames to prefix. The default is y.

<TR>

<TD VALIGN="TOP"><B>-d</B>

<TD>Writes a header file containing macro definitions for the token type names defined in the grammar and the semantic value type YYSTYPE, as well as extern variable declarations.

<TR>

<TD><B>-l</B>

<TD>Doesn&#146;t insert code into existing files.

<TR>

<TD><B>-o outfile</B>

<TD>Uses outfile as the parser file.

<TR>

<TD VALIGN="TOP"><B>-p <I>prefix</I></B>

<TD VALIGN="TOP">Renames the external symbols used in the parser so that they start with <I>prefix</I> instead of <I>yy</I>.

<TR>

<TD VALIGN="TOP"><B>-t</B>

<TD>Changes the preprocessor directives to include debugging information.

<TR>

<TD VALIGN="TOP"><B>-v</B>

<TD>Writes a human-readable description of the generated parser to <B>y.output</B>.

</TABLE>

<P><FONT SIZE="+1"><B><I>RELATED COMMANDS</I></B></FONT></P>

<DL>

<DD><B>yacc</B>

</DL>

<P><BR></P>

<CENTER>

<TABLE BORDER>

<TR>

<TD><A HREF="414-423.html">Previous</A></TD>

<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>

<TD><A HREF="428-435.html">Next</A></TD>

</TR>

</TABLE>

</CENTER>





</td>
</tr>
</table>

<!-- begin footer information -->





</body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -