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

📄 428-435.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=428-435//-->

<!--UNASSIGNED1//-->

<!--UNASSIGNED2//-->



<CENTER>

<TABLE BORDER>

<TR>

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

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

<TD><A HREF="436-438.html">Next</A></TD>

</TR>

</TABLE>

</CENTER>

<P><BR></P>

<P><FONT SIZE="+1"><B>cc......<TT>C Compiler</TT></B></FONT></P>

<P><B>cc</B> <I>option filename</I></P>

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

<P>The <B>cc</B> command is the standard C-compiler command. Linux features <B>gcc</B>, the GNU C Compiler, as its C-language tool of choice. Check the listings for <B>gcc</B> for more information.</P>

<P><FONT SIZE="+1"><B>cpp......<TT>C Compiler Preprocessor</TT></B></FONT></P>

<IMG SRC="images/05-137i.jpg"><P><B>cpp</B> <I>option(s) inputfile outputfile</I></P>

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

<P>The C preprocessor is a macro processor that is used by the C compiler to transform your program before actual compilation. For a more detailed explanation, see the <B>info</B> entry for <B>cpp.info</B> and the online-manual pages.</P>

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

<DL>

<DD><B>gcc</B>

<DD><B>imake</B>

</DL>

<P><FONT SIZE="+1"><B>ctags......<TT>Vi Tags</TT></B></FONT></P>

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

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

<P>The <B>ctags</B> command creates a tag-table file in a format usable by <B>vi.</B> Supported syntaxes are C, C&#43;&#43;, Fortran, Pascal, LaTeX, Scheme, Emacs Lisp/Common Lisp, Erlang, Prolog, and most assembler-like syntaxes.</P>

<P>See the online-manual pages for more information.</P>

<P><FONT SIZE="+1"><B>etags......<TT>Emacs Tags</TT></B></FONT></P>

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

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

<P>The <B>etags</B> command creates a tag-table file in a format usable by <B>emacs.</B> Supported syntaxes are C, C&#43;&#43;, Fortran, Pascal, LaTeX, Scheme, Emacs Lisp/Common Lisp, Erlang, Prolog, and most assembler-like syntaxes.</P>

<P>See the online-manual pages for more information.</P>

<P><FONT SIZE="+1"><B>flex......<TT>Fast Lexical Analyzer Generator</TT></B></FONT></P>

<P><B>flex</B> <I>option(s) filename</I></P>

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

<P>The <B>flex</B> command generates scanner programs that recognize lexical patterns in text. This command reads the given input files, or its standard input if no filenames are given, for a description of a scanner to generate. The description is in the form of pairs of regular expressions and C code, called <I>rules</I>. The output is a C source file. This file is compiled and linked with the <B>-lfl</B> library to produce an executable.</P>

<P>See the online-manual pages for more information.</P>

<P><FONT SIZE="+1"><B>g77......<TT>Fortran Compiler</TT></B></FONT></P>

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

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

<P>The <B>g77</B> command compiles Fortran programs. See the <B>info</B> listing for <B>g77</B> for information on Fortran and this command.</P>

<P><FONT SIZE="+1"><B>gawk......<TT>GNU AWK</TT></B></FONT></P>

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

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

<P>The <B>gawk</B> command is the GNU version of the AWK programming language&#151;not necessarily a complex language, but an involved one. You&#146;ll want to check the online-manual pages or perhaps even an AWK programming book for more information.</P>

<P><FONT SIZE="+1"><B>gcc......<TT>C/C&#43;&#43; Compiler</TT></B></FONT></P>

<IMG SRC="images/05-142i.jpg"><P><B>gcc</B> <I>option filename</I></P>

<P>g&#43;&#43; <I>option filename</I></P>

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

<P>The <B>gcc</B> and <B>g&#43;&#43;</B> commands are the C-language and C&#43;&#43;-language compilers used in Linux. (Also supported is Objective-C.) Both process input files through one or more of four stages: preprocessing, compilation, assembly, and linking. The <B>gcc</B> command assumes that preprocessed (<B>.i</B>) files are C and assumes C-style linking, while <B>g&#43;&#43;</B> assumes that preprocessed (<B>.i</B>) files are C&#43;&#43; and assumes C&#43;&#43; style linking. Commands work with the following filename extensions:</P>

<TABLE WIDTH="100%"><TR>

<TD WIDTH="20%"><B>.c</B>

<TD WIDTH="80%">C source; preprocess, compile, assemble

<TR>

<TD><B>.C</B>

<TD>C&#43;&#43; source; preprocess, compile, assemble

<TR>

<TD><B>.cc</B>

<TD>C&#43;&#43; source; preprocess, compile, assemble

<TR>

<TD><B>.cxx</B>

<TD>C&#43;&#43; source; preprocess, compile, assemble

<TR>

<TD><B>.m</B>

<TD>Objective-C source; preprocess, compile, assemble

<TR>

<TD><B>.i</B>

<TD>Preprocessed C; compile, assemble

<TR>

<TD><B>.ii</B>

<TD>Preprocessed C&#43;&#43;; compile, assemble

<TR>

<TD><B>.s</B>

<TD>Assembler source; assemble

<TR>

<TD><B>.S</B>

<TD>Assembler source; preprocess, assemble

<TR>

<TD><B>.h</B>

<TD>Preprocessor file; not usually named on command line

</TABLE>

<P>Files with other suffixes are passed to the linker. Common cases include:

</P>

<TABLE WIDTH="100%"><TR>

<TD WIDTH="20%"><B>.o</B>

<TD WIDTH="80%">Object file

<TR>

<TD><B>.a</B>

<TD>Archive file

</TABLE>

<P>A primer on programming and the use of the C language is not presented here; entire libraries cover C programming much better than we can in this limited forum. In addition, there are hundreds of options available for this command; you&#146;ll want to check the <B>info</B> pages for more information.</P><P><BR></P>

<CENTER>

<TABLE BORDER>

<TR>

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

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

<TD><A HREF="436-438.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 + -