st20cc6.htm
来自「ST20 Embedded Toolset R2.0.5用于开发基于ST20芯片」· HTM 代码 · 共 74 行
HTM
74 行
<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 13:43:59">
<title>9.5 Code and data placement</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_userto.htm"><img src="images/navtoc.gif" width="84" height="23"
border="0" alt="TOC"> </a></td>
<td><a href="st20cc5.htm"><img src="images/navprev.gif" width="80" height="23"
border="0" alt="PREV"> </a></td>
<td><a href="st20cc7.htm"><img src="images/navnext.gif" width="83" height="23"
border="0" alt="NEXT"> </a></td>
<td><a href="a_userix.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="1208547"> </a><font color="#003366" face="Verdana, Arial, Helvetica, sans-serif">9.5 Code and data placement</font>
</h2><hr>
<p>
<a name="1208548"> </a><font size=2 face="Verdana, Arial, Helvetica, sans-serif">The ST20 toolset provides users with fine granularity code and data placement. The user is given control over the placement of all symbols in memory. The mechanism for doing this operates at two levels:</font>
</p>
<p>
<a name="1208549"> </a><font size=2 face="Verdana, Arial, Helvetica, sans-serif">A program is made up of sections such as code, const, data and bss. Users can define their own sections. If there are no user defined sections then <strong>st20cc</strong> generates a linked list of default sections with default ordering.</font>
</p>
<p>
<a name="1208550"> </a><font size=2 face="Verdana, Arial, Helvetica, sans-serif">The compiler/linker creates some special sections in order to correctly implement some functionality. These special sections use a set of system reserved names prefixed with "<font size=2 face=Courier><strong>_ _</strong></font>" or "<font size=2 face=Courier><strong><</strong></font>". These prefixes should not be used in user defined section names.</font>
</p>
<p>
<a name="1208551"> </a><font size=2 face="Verdana, Arial, Helvetica, sans-serif">The user is also able via the toolset command language to define a memory map for the application program in detail, specifying start and end addresses and the memory type for specific ranges of memory. Named sections from the application program can then be placed into named memory segments.</font>
</p>
<p>
<a name="1208552"> </a><font size=2 face="Verdana, Arial, Helvetica, sans-serif">By defining a memory segment to start at a particular address, it is possible to force a symbol to be placed at a particular address.</font>
</p>
<p>
<a name="1208555"> </a><font size=2 face="Verdana, Arial, Helvetica, sans-serif">Code and data placement is described in the <em>ST20 Embedded Toolset Reference Manual</em>. See <a href="st20cc7.htm#1208784"><font color="#0000ff" face="Verdana, Arial, Helvetica, sans-serif"><i>Section
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?