📄 type.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="Type">Type</a>,
Next:<a rel="next" accesskey="n" href="Uleb128.html#Uleb128">Uleb128</a>,
Previous:<a rel="previous" accesskey="p" href="Title.html#Title">Title</a>,
Up:<a rel="up" accesskey="u" href="Pseudo-Ops.html#Pseudo%20Ops">Pseudo Ops</a>
<hr><br>
</div>
<h3 class="section"><code>.type </code><var>int</var><code></code> (COFF version)</h3>
<p>This directive, permitted only within <code>.def</code>/<code>.endef</code> pairs,
records the integer <var>int</var> as the type attribute of a symbol table entry.
<p><code>.type</code> is associated only with COFF format output; when
<code>as</code> is configured for <code>b.out</code> output, it accepts this
directive but ignores it.
<h3 class="section"><code>.type </code><var>name</var><code> , </code><var>type description</var><code></code> (ELF version)</h3>
<p>This directive is used to set the type of symbol <var>name</var> to be either a
function symbol or an object symbol. There are five different syntaxes
supported for the <var>type description</var> field, in order to provide
compatibility with various other assemblers. The syntaxes supported are:
<pre class="smallexample"> .type <name>,#function
.type <name>,#object
.type <name>,@function
.type <name>,@object
.type <name>,%function
.type <name>,%object
.type <name>,"function"
.type <name>,"object"
.type <name> STT_FUNCTION
.type <name> STT_OBJECT
</pre>
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -