r.html
来自「gcc手册」· HTML 代码 · 共 42 行
HTML
42 行
<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="R">R</a>,
Next:<a rel="next" accesskey="n" href="statistics.html#statistics">statistics</a>,
Previous:<a rel="previous" accesskey="p" href="o.html#o">o</a>,
Up:<a rel="up" accesskey="u" href="Invoking.html#Invoking">Invoking</a>
<hr><br>
</div>
<h3 class="section">Join Data and Text Sections: <code>-R</code></h3>
<p><code>-R</code> tells <code>as</code> to write the object file as if all
data-section data lives in the text section. This is only done at
the very last moment: your binary data are the same, but data
section parts are relocated differently. The data section part of
your object file is zero bytes long because all its bytes are
appended to the text section. (See <a href="Sections.html#Sections">Sections and Relocation</a>.)
<p>When you specify <code>-R</code> it would be possible to generate shorter
address displacements (because we do not have to cross between text and
data section). We refrain from doing this simply for compatibility with
older versions of <code>as</code>. In future, <code>-R</code> may work this way.
<p>When <code>as</code> is configured for COFF output,
this option is only useful if you use sections named <code>.text</code> and
<code>.data</code>.
<p><code>-R</code> is not supported for any of the HPPA targets. Using
<code>-R</code> generates a warning from <code>as</code>.
</body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?