command-line.html

来自「gcc手册」· HTML 代码 · 共 46 行

HTML
46
字号
<html lang="en">

<head>

<title>Using as</title>

<meta http-equiv="Content-Type" content="text/html">

<meta name="description" content="Using as">

<meta name="generator" content="makeinfo 4.3">

<link href="http://www.gnu.org/software/texinfo/" rel="generator-home">

</head>

<body>

<div class="node">

<p>

Node:<a name="Command%20Line">Command Line</a>,

Next:<a rel="next" accesskey="n" href="Input-Files.html#Input%20Files">Input Files</a>,

Previous:<a rel="previous" accesskey="p" href="Object-Formats.html#Object%20Formats">Object Formats</a>,

Up:<a rel="up" accesskey="u" href="Overview.html#Overview">Overview</a>

<hr><br>

</div>



<h3 class="section">Command Line</h3>



   <p>After the program name <code>as</code>, the command line may contain

options and file names.  Options may appear in any order, and may be

before, after, or between file names.  The order of file names is

significant.



   <p><code>--</code> (two hyphens) by itself names the standard input file

explicitly, as one of the files for <code>as</code> to assemble.



   <p>Except for <code>--</code> any command line argument that begins with a

hyphen (<code>-</code>) is an option.  Each option changes the behavior of

<code>as</code>.  No option changes the way another option works.  An

option is a <code>-</code> followed by one or more letters; the case of

the letter is important.   All options are optional.



   <p>Some options expect exactly one file name to follow them.  The file

name may either immediately follow the option's letter (compatible

with older assemblers) or it may be the next command argument (<small>GNU</small>

standard).  These two command lines are equivalent:



<pre class="smallexample">     as -o my-object-file.o mumble.s

     as -omy-object-file.o mumble.s

     </pre>



   </body></html>



⌨️ 快捷键说明

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