⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 assem25.htm

📁 ST20 Embedded Toolset R2.0.5用于开发基于ST20芯片机顶盒软件的开发平台,2.0.5版本,国内找不到的.在国外论坛上花了N天才找到!
💻 HTM
字号:
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta name="GENERATOR" content="Quadralay WebWorks Publisher Professional Edition 6.0.5">
<meta name="TEMPLATEBASE" content="book_html">
<meta name="LASTUPDATED" content="12/04/03 16:03:05">
<title>global</title>

<STYLE TYPE="text/css">
<!--
	span.Signal { text-transform: uppercase; font-family: Verdana }
-->
</STYLE>

</head>

<body link="#3366CC" vlink="#9999CC" text="#000000" alink="#0000CC" bgcolor="#FFFFFF"
background="images/backgrnd.gif">

<p><img src="images/stlogo.gif" width="106" height="83" align="left"
alt="logo here!"> </p>

<table width="331" border="0" align="right" cellpadding="0" cellspacing="0">
  <tr>
    <td><a href="a_refman.htm"><img src="images/navtoc.gif" width="84" height="23"
    border="0" alt="TOC"> </a></td>
    <td><a href="assem24.htm"><img src="images/navprev.gif" width="80" height="23"
    border="0" alt="PREV"> </a></td>
    <td><a href="assem26.htm"><img src="images/navnext.gif" width="83" height="23"
    border="0" alt="NEXT"> </a></td>
    <td><a href="a_refmaa.htm"><img src="images/navidx.gif" width="84" height="23"
    border="0" alt="INDEX"> </a></td>
  </tr>
</table>

<p><br clear="all">
</p>

<hr align="left">

<blockquote>
<h2>
  <a name="1205191"> </a><font color="#003366"  face="Verdana, Arial, Helvetica, sans-serif">global</font>
</h2><hr>


<p>
  <a name="1242557"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">Define symbol as global</font>
</p>


<h3>
  <a name="1205192"> </a><font color="#003366"  face="Verdana, Arial, Helvetica, sans-serif">Syntax</font>
</h3>


<a name="1205193"> </a><font size=2 face=Courier><strong>global <font size=2 face=Courier><strong><em>symbol</em></strong></font> [realname <font size=2 face=Courier><strong><em>string</em></strong></font>] [origin <font size=2 face=Courier><strong><em>string</em></strong></font>] [datausage]<br>牋牋牋牋牋牋牋燵routineusage] [notypeusage] [commonusage]<br></strong></font>



<h3>
  <a name="1205194"> </a><font color="#003366"  face="Verdana, Arial, Helvetica, sans-serif">Description</font>
</h3>


<p>
  <a name="1205195"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">The <font size=2 face=Courier><strong>global</strong></font> directive is used to cause a <font size=2 face=Courier><strong><em>symbol</em></strong></font> to become available outside the current module. It causes the <font size=2 face=Courier><strong><em>symbol</em></strong></font> to become globally visible so that it can be accessed by the linker. The operand to a <font size=2 face=Courier><strong>global</strong></font> directive, that is the <font size=2 face=Courier><strong><em>symbol</em></strong></font>, may be a code or data symbol, but it <strong>must not</strong> be a symbol defined by the <font size=2 face=Courier><strong>defsym</strong></font> directive. The <font size=2 face=Courier><strong>global</strong></font> directive can appear before the definition of its operand.</font>
</p>


<p>
  <a name="1205196"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">The name used for the symbol in the object file is the same as the name of the symbol in the assembly source file, unless <font size=2 face=Courier><strong>realname</strong></font> is specified. In this case the name used for the symbol in the object file is the name specified by the string argument to <font size=2 face=Courier><strong>realname</strong></font>.</font>
</p>


<p>
  <a name="1205197"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif"><font size=2 face=Courier><strong>origin</strong></font> enables an origin to be specified for the symbol in the object file. This allows the linker to ensure that only a reference to a symbol with the same name and the same origin matches this symbol. If <font size=2 face=Courier><strong>origin</strong></font> is not specified, then the symbol in the object file is not given a specific origin. The linker can match this symbol to a symbol with the same name and any origin.</font>
</p>


<p>
  <a name="1205198"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">The four optional arguments <font size=2 face=Courier><strong>datausage</strong></font>, <font size=2 face=Courier><strong>routineusage</strong></font>, <font size=2 face=Courier><strong>notypeusage </strong></font>and <font size=2 face=Courier><strong>commonusage</strong></font> generate extra symbol information in the object file which can be incorporated by the linker into a symbol table. This may be used by tools such as a debugger or profiler, when reading symbol information.</font>
</p>


<p>
  <a name="1205199"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif"><b><font size=2 face=Courier><strong>datausage</strong></font></b></font>
<br>

<dl><dl>    <dl>
      <dt> <a name="1240495"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">Indicates that the symbol is associated with a data object.</font>
    </dl>
</dl></dl>
<p>
  <a name="1229439"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif"><b><font size=2 face=Courier><strong>routineusage</strong></font></b></font>
<br>

<dl><dl>    <dl>
      <dt> <a name="1240496"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">Indicates that the symbol is associated with a routine.</font>
    </dl>
</dl></dl>
<p>
  <a name="1229441"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif"><b><font size=2 face=Courier><strong>notypeusage</strong></font></b></font>
<br>

<dl><dl>    <dl>
      <dt> <a name="1240497"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">Indicates that the symbol type (data or routine) is not specified.</font>
    </dl>
</dl></dl>
<p>
  <a name="1205202"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif"><b><font size=2 face=Courier><strong>commonusage</strong></font></b></font>
<br>

<dl><dl>    <dl>
      <dt> <a name="1240498"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">Indicates to the linker that the symbol is a tentative definition; see <a href="impdet6.htm#1204986"><font  color="#0000ff" face="Verdana, Arial, Helvetica, sans-serif"><i>Section

⌨️ 快捷键说明

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