impdet29.htm
来自「ST20 Embedded Toolset R2.0.5用于开发基于ST20芯片」· HTM 代码 · 共 64 行
HTM
64 行
<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:26">
<title>13.14 Static data layout</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="impdet28.htm"><img src="images/navprev.gif" width="80" height="23"
border="0" alt="PREV"> </a></td>
<td><a href="impdet30.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="1205316"> </a><font color="#003366" face="Verdana, Arial, Helvetica, sans-serif">13.14 Static data layout</font>
</h2><hr>
<p>
<a name="1205317"> </a><font size=2 face="Verdana, Arial, Helvetica, sans-serif">By default, static data that has not been explicitly placed using a <font size=2 face=Courier><strong>place</strong></font> command is placed in one of three sections:</font>
</p>
<ul>
<p> <font size=2 face="Verdana, Arial, Helvetica, sans-serif"><li ><a name="1205318"> </a><font size=2 face=Courier><strong><Filename_const></strong></font> - contains all <font size=2 face=Courier><strong>const</strong></font> data items,</font></p>
<p> <font size=2 face="Verdana, Arial, Helvetica, sans-serif"><li ><a name="1205319"> </a><font size=2 face=Courier><strong><Filename_data></strong></font> - contains all initialized non-<font size=2 face=Courier><strong>const</strong></font> data items,</font></p>
<p> <font size=2 face="Verdana, Arial, Helvetica, sans-serif"><li ><a name="1205320"> </a><font size=2 face=Courier><strong><Filename_bss></strong></font> - contains all uninitialized non-<font size=2 face=Courier><strong>const</strong></font> data items.</font></p>
</ul>
<p>
<a name="1205321"> </a><font size=2 face="Verdana, Arial, Helvetica, sans-serif">Placement within each of these sections is arbitrary. The three sections from all input object files are coalesced by the linker into default const, data and BSS sections. The order of placement of these default sections in the memory map is arbitrary and determined by a combination of default behavior and user placement commands. The base address of the default section positioned at the lowest address in memory is called the static link. To access static data <strong>st20cc</strong> adds an offset to the static link, this gives a pointer to the static area.</font>
</p>
<p>
<a name="1209610"> </a><font size=2 face="Verdana, Arial, Helvetica, sans-serif">The map file generated by the <strong>st20cc</strong> option <font face="Verdana, Arial, Helvetica, sans-serif"><b>M</b></font> records the static data layout. It is described in <a href="map.htm#1207301"><font color="#0000ff" face="Verdana, Arial, Helvetica, sans-serif"><i>Chapter
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?