You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

3 年之前
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <!-- This file documents the GNU Assembler "as".
  4. Copyright (C) 1991-2020 Free Software Foundation, Inc.
  5. Permission is granted to copy, distribute and/or modify this document
  6. under the terms of the GNU Free Documentation License, Version 1.3
  7. or any later version published by the Free Software Foundation;
  8. with no Invariant Sections, with no Front-Cover Texts, and with no
  9. Back-Cover Texts. A copy of the license is included in the
  10. section entitled "GNU Free Documentation License".
  11. -->
  12. <!-- Created by GNU Texinfo 6.5, http://www.gnu.org/software/texinfo/ -->
  13. <head>
  14. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  15. <title>VAX-Opts (Using as)</title>
  16. <meta name="description" content="VAX-Opts (Using as)">
  17. <meta name="keywords" content="VAX-Opts (Using as)">
  18. <meta name="resource-type" content="document">
  19. <meta name="distribution" content="global">
  20. <meta name="Generator" content="makeinfo">
  21. <link href="index.html#Top" rel="start" title="Top">
  22. <link href="AS-Index.html#AS-Index" rel="index" title="AS Index">
  23. <link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
  24. <link href="Vax_002dDependent.html#Vax_002dDependent" rel="up" title="Vax-Dependent">
  25. <link href="VAX_002dfloat.html#VAX_002dfloat" rel="next" title="VAX-float">
  26. <link href="Vax_002dDependent.html#Vax_002dDependent" rel="prev" title="Vax-Dependent">
  27. <style type="text/css">
  28. <!--
  29. a.summary-letter {text-decoration: none}
  30. blockquote.indentedblock {margin-right: 0em}
  31. blockquote.smallindentedblock {margin-right: 0em; font-size: smaller}
  32. blockquote.smallquotation {font-size: smaller}
  33. div.display {margin-left: 3.2em}
  34. div.example {margin-left: 3.2em}
  35. div.lisp {margin-left: 3.2em}
  36. div.smalldisplay {margin-left: 3.2em}
  37. div.smallexample {margin-left: 3.2em}
  38. div.smalllisp {margin-left: 3.2em}
  39. kbd {font-style: oblique}
  40. pre.display {font-family: inherit}
  41. pre.format {font-family: inherit}
  42. pre.menu-comment {font-family: serif}
  43. pre.menu-preformatted {font-family: serif}
  44. pre.smalldisplay {font-family: inherit; font-size: smaller}
  45. pre.smallexample {font-size: smaller}
  46. pre.smallformat {font-family: inherit; font-size: smaller}
  47. pre.smalllisp {font-size: smaller}
  48. span.nolinebreak {white-space: nowrap}
  49. span.roman {font-family: initial; font-weight: normal}
  50. span.sansserif {font-family: sans-serif; font-weight: normal}
  51. ul.no-bullet {list-style: none}
  52. -->
  53. </style>
  54. </head>
  55. <body lang="en">
  56. <a name="VAX_002dOpts"></a>
  57. <div class="header">
  58. <p>
  59. Next: <a href="VAX_002dfloat.html#VAX_002dfloat" accesskey="n" rel="next">VAX-float</a>, Up: <a href="Vax_002dDependent.html#Vax_002dDependent" accesskey="u" rel="up">Vax-Dependent</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="AS-Index.html#AS-Index" title="Index" rel="index">Index</a>]</p>
  60. </div>
  61. <hr>
  62. <a name="VAX-Command_002dLine-Options"></a>
  63. <h4 class="subsection">9.50.1 VAX Command-Line Options</h4>
  64. <a name="index-command_002dline-options-ignored_002c-VAX"></a>
  65. <a name="index-VAX-command_002dline-options-ignored"></a>
  66. <p>The Vax version of <code>as</code> accepts any of the following options,
  67. gives a warning message that the option was ignored and proceeds.
  68. These options are for compatibility with scripts designed for other
  69. people&rsquo;s assemblers.
  70. </p>
  71. <dl compact="compact">
  72. <dd><a name="index-_002dD_002c-ignored-on-VAX"></a>
  73. <a name="index-_002dS_002c-ignored-on-VAX"></a>
  74. <a name="index-_002dT_002c-ignored-on-VAX"></a>
  75. </dd>
  76. <dt><code><code>-D</code> (Debug)</code></dt>
  77. <dt><code><code>-S</code> (Symbol Table)</code></dt>
  78. <dt><code><code>-T</code> (Token Trace)</code></dt>
  79. <dd><p>These are obsolete options used to debug old assemblers.
  80. </p>
  81. <a name="index-_002dd_002c-VAX-option"></a>
  82. </dd>
  83. <dt><code><code>-d</code> (Displacement size for JUMPs)</code></dt>
  84. <dd><p>This option expects a number following the &lsquo;<samp>-d</samp>&rsquo;. Like options
  85. that expect filenames, the number may immediately follow the
  86. &lsquo;<samp>-d</samp>&rsquo; (old standard) or constitute the whole of the command-line
  87. argument that follows &lsquo;<samp>-d</samp>&rsquo; (<small>GNU</small> standard).
  88. </p>
  89. <a name="index-_002dV_002c-redundant-on-VAX"></a>
  90. </dd>
  91. <dt><code><code>-V</code> (Virtualize Interpass Temporary File)</code></dt>
  92. <dd><p>Some other assemblers use a temporary file. This option
  93. commanded them to keep the information in active memory rather
  94. than in a disk file. <code>as</code> always does this, so this
  95. option is redundant.
  96. </p>
  97. <a name="index-_002dJ_002c-ignored-on-VAX"></a>
  98. </dd>
  99. <dt><code><code>-J</code> (JUMPify Longer Branches)</code></dt>
  100. <dd><p>Many 32-bit computers permit a variety of branch instructions
  101. to do the same job. Some of these instructions are short (and
  102. fast) but have a limited range; others are long (and slow) but
  103. can branch anywhere in virtual memory. Often there are 3
  104. flavors of branch: short, medium and long. Some other
  105. assemblers would emit short and medium branches, unless told by
  106. this option to emit short and long branches.
  107. </p>
  108. <a name="index-_002dt_002c-ignored-on-VAX"></a>
  109. </dd>
  110. <dt><code><code>-t</code> (Temporary File Directory)</code></dt>
  111. <dd><p>Some other assemblers may use a temporary file, and this option
  112. takes a filename being the directory to site the temporary
  113. file. Since <code>as</code> does not use a temporary disk file, this
  114. option makes no difference. &lsquo;<samp>-t</samp>&rsquo; needs exactly one
  115. filename.
  116. </p></dd>
  117. </dl>
  118. <a name="index-VMS-_0028VAX_0029-options"></a>
  119. <a name="index-options-for-VAX_002fVMS"></a>
  120. <a name="index-VAX_002fVMS-options"></a>
  121. <a name="index-Vax_002d11-C-compatibility"></a>
  122. <a name="index-symbols-with-uppercase_002c-VAX_002fVMS"></a>
  123. <p>The Vax version of the assembler accepts additional options when
  124. compiled for VMS:
  125. </p>
  126. <dl compact="compact">
  127. <dd><a name="index-_002dh-option_002c-VAX_002fVMS"></a>
  128. </dd>
  129. <dt>&lsquo;<samp>-h <var>n</var></samp>&rsquo;</dt>
  130. <dd><p>External symbol or section (used for global variables) names are not
  131. case sensitive on VAX/VMS and always mapped to upper case. This is
  132. contrary to the C language definition which explicitly distinguishes
  133. upper and lower case. To implement a standard conforming C compiler,
  134. names must be changed (mapped) to preserve the case information. The
  135. default mapping is to convert all lower case characters to uppercase and
  136. adding an underscore followed by a 6 digit hex value, representing a 24
  137. digit binary value. The one digits in the binary value represent which
  138. characters are uppercase in the original symbol name.
  139. </p>
  140. <p>The &lsquo;<samp>-h <var>n</var></samp>&rsquo; option determines how we map names. This takes
  141. several values. No &lsquo;<samp>-h</samp>&rsquo; switch at all allows case hacking as
  142. described above. A value of zero (&lsquo;<samp>-h0</samp>&rsquo;) implies names should be
  143. upper case, and inhibits the case hack. A value of 2 (&lsquo;<samp>-h2</samp>&rsquo;)
  144. implies names should be all lower case, with no case hack. A value of 3
  145. (&lsquo;<samp>-h3</samp>&rsquo;) implies that case should be preserved. The value 1 is
  146. unused. The <code>-H</code> option directs <code>as</code> to display
  147. every mapped symbol during assembly.
  148. </p>
  149. <p>Symbols whose names include a dollar sign &lsquo;<samp>$</samp>&rsquo; are exceptions to the
  150. general name mapping. These symbols are normally only used to reference
  151. VMS library names. Such symbols are always mapped to upper case.
  152. </p>
  153. <a name="index-_002d_002b-option_002c-VAX_002fVMS"></a>
  154. </dd>
  155. <dt>&lsquo;<samp>-+</samp>&rsquo;</dt>
  156. <dd><p>The &lsquo;<samp>-+</samp>&rsquo; option causes <code>as</code> to truncate any symbol
  157. name larger than 31 characters. The &lsquo;<samp>-+</samp>&rsquo; option also prevents some
  158. code following the &lsquo;<samp>_main</samp>&rsquo; symbol normally added to make the object
  159. file compatible with Vax-11 &quot;C&quot;.
  160. </p>
  161. <a name="index-_002d1-option_002c-VAX_002fVMS"></a>
  162. </dd>
  163. <dt>&lsquo;<samp>-1</samp>&rsquo;</dt>
  164. <dd><p>This option is ignored for backward compatibility with <code>as</code>
  165. version 1.x.
  166. </p>
  167. <a name="index-_002dH-option_002c-VAX_002fVMS"></a>
  168. </dd>
  169. <dt>&lsquo;<samp>-H</samp>&rsquo;</dt>
  170. <dd><p>The &lsquo;<samp>-H</samp>&rsquo; option causes <code>as</code> to print every symbol
  171. which was changed by case mapping.
  172. </p></dd>
  173. </dl>
  174. <hr>
  175. <div class="header">
  176. <p>
  177. Next: <a href="VAX_002dfloat.html#VAX_002dfloat" accesskey="n" rel="next">VAX-float</a>, Up: <a href="Vax_002dDependent.html#Vax_002dDependent" accesskey="u" rel="up">Vax-Dependent</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="AS-Index.html#AS-Index" title="Index" rel="index">Index</a>]</p>
  178. </div>
  179. </body>
  180. </html>