📄 sparc-aligned-data.html
字号:
<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="Sparc-Aligned-Data">Sparc-Aligned-Data</a>,
Next:<a rel="next" accesskey="n" href="Sparc-Float.html#Sparc-Float">Sparc-Float</a>,
Previous:<a rel="previous" accesskey="p" href="Sparc-Opts.html#Sparc-Opts">Sparc-Opts</a>,
Up:<a rel="up" accesskey="u" href="Sparc-Dependent.html#Sparc-Dependent">Sparc-Dependent</a>
<hr><br>
</div>
<h4 class="section">Enforcing aligned data</h4>
<p>SPARC GAS normally permits data to be misaligned. For example, it
permits the <code>.long</code> pseudo-op to be used on a byte boundary.
However, the native SunOS and Solaris assemblers issue an error when
they see misaligned data.
<p>You can use the <code>--enforce-aligned-data</code> option to make SPARC GAS
also issue an error about misaligned data, just as the SunOS and Solaris
assemblers do.
<p>The <code>--enforce-aligned-data</code> option is not the default because gcc
issues misaligned data pseudo-ops when it initializes certain packed
data structures (structures defined using the <code>packed</code> attribute).
You may have to assemble with GAS in order to initialize packed data
structures in your own code.
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -