📄 preproc8.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:06:14">
<title>12.2.5 Pragma ST_nolink </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="preproc7.htm"><img src="images/navprev.gif" width="80" height="23"
border="0" alt="PREV"> </a></td>
<td><a href="preproc9.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>
<h3>
<a name="1204639"> </a><font color="#003366" face="Verdana, Arial, Helvetica, sans-serif">12.2.5 Pragma ST_nolink</font>
</h3>
<p>
<a name="1204640"> </a><font size=2 face="Verdana, Arial, Helvetica, sans-serif">The pragma <font size=2 face=Courier><strong>ST_nolink</strong></font> compiles a specified function without a static link. The function must already have been declared and must not have been defined or called.</font>
</p>
<p>
<a name="1204641"> </a><font size=2 face="Verdana, Arial, Helvetica, sans-serif">A function that does not require to access data via the static link (that is, which does not refer to global data) may be identified, using this pragma, as a "nolink" routine. Doing this saves up to one byte of code in the function, and up to two燽ytes in the caller. It may also ease interfacing with routines written in assembler language. However, it restricts the function, specified by the <font size=2 face=Courier><strong>ST_nolink</strong></font> pragma as it cannot then call other functions unless they also have been declared to be nolink, nor can it access global (or local static) data.</font>
</p>
<p>
<a name="1205720"> </a><font size=2 face="Verdana, Arial, Helvetica, sans-serif"><em>Note: Functions which have had the <font size=2 face=Courier><strong>ST_nolink</strong></font> pragma applied may not be called through a pointer unless that pointer also has the <font size=2 face=Courier><strong>ST_nolink</strong></font> pragma applied to it. In this case the function pointer could be used to pass the static link to the function. This is useful for relocatable code units; see <a href="rcu.htm#1210698"><font color="#0000ff" face="Verdana, Arial, Helvetica, sans-serif"><i>Chapter
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -