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

📄 main42.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="noindex_htm">
<meta name="LASTUPDATED" content="12/04/03 16:47:07">
<title>8.3 C++ improvements</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 border="0" align="right" cellpadding="0" cellspacing="0">
  <tr>
    <td><a href="a_delman.htm"><img src="images/navtoc.gif" width="84" height="23"
    border="0" alt="TOC"></a></td>
    <td><a href="main41.htm"><img src="images/navprev.gif" width="80" height="23"
    border="0" alt="PREV"></a></td>
    <td><a href="main43.htm"><img src="images/navnext.gif" width="83" height="23"
    border="0" alt="NEXT"></a></td>
  </tr>
</table>

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

<hr align="left">

<blockquote>
<h2>
  <a name="1222776"> </a><font color="#003366"  face="Verdana, Arial, Helvetica, sans-serif">8.3 	 C++ improvements</font>
</h2><hr>


<p>
  <a name="1222905"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">There have been significant improvements to the C++ system since R1.9.6. The sections below detail the areas that have changed.</font>
</p>


<h3>
  <a name="1222913"> </a><font color="#003366"  face="Verdana, Arial, Helvetica, sans-serif">8.3.1 	 Footprint reduction</font>
</h3>


<p>
  <a name="1222914"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">Some users may experience a reduction in the footprint size of a binary built from C++ sources. A significant reduction in the size of the BSS section has been observed in some applications.</font>
</p>


<h3>
  <a name="1220798"> </a><font color="#003366"  face="Verdana, Arial, Helvetica, sans-serif">8.3.2 	 Template support </font>
</h3>


<p>
  <a name="1220799"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">Templates are enabled by default. </font>
</p>


<p>
  <a name="1221036"> </a><font size=2 face="Verdana, Arial, Helvetica, sans-serif"><em>Note:	 When a C++ template file is compiled, <strong>st20cc</strong> creates a temporary <font size=2 face=Courier><strong>.ti</strong></font> (template information) file, containing object names. This is used internally to link with libraries having the same instantiated objects. <font size=2 face=Courier><strong>.ti</strong></font> files should be ignored, and may safely be deleted after compilation.</em></font>
</p>

<h3>
  <a name="1220800"> </a><font color="#003366"  face="Verdana, Arial, Helvetica, sans-serif">8.3.3 	 Exception handling support</font>
</h3>


<p>
  <a name="1220801"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">Exception handling is enabled by using the <font size=2 face=Courier><strong>-exceptions</strong></font> options for <strong>st20cc</strong>. If exception handling is required this should be applied for the compilation phase and the link phase.</font>
</p>


<p>
  <a name="1220803"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif"><b>Important</b></font>
<br>

<dl><dl>    <dl>
      <dt> <a name="1221074"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">Code for interrupt handlers and high priority tasks must be placed in a compilation unit that is compiled without exception handling enabled.</font>
    </dl>
</dl></dl>
<h3>
  <a name="1220806"> </a><font color="#003366"  face="Verdana, Arial, Helvetica, sans-serif">8.3.4 	 C++ Standard Libraries (supported with and without exceptions enabled)</font>
</h3>


<p>
  <a name="1220807"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">The C++ libraries, which include the Standard Template Library (STL) and iostreams, are shipped with this release.</font>
</p>


<p>
  <a name="1220809"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">An embedded version of the C++ libraries, which is aimed at the EC++ specification, and is considerably smaller and simpler than the full version, is also shipped. This may be used instead of the ISO/IEC 14882 default version by supplying the <font size=2 face=Courier><strong>-ec++stl</strong></font> option to <strong>st20cc</strong>. As with the full version, this embedded version may be used with or without exceptions enabled. </font>
</p>


<p>
  <a name="1220810"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">New directories have been added under the include area of the release to contain headers for the C++ libraries.</font>
</p>


<h3>
  <a name="1220811"> </a><font color="#003366"  face="Verdana, Arial, Helvetica, sans-serif">8.3.5 	 Compiler-generated section names</font>
</h3>


<p>
  <a name="1220812"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">For implementation reasons, the compiler provides unique section names for some template code and external inline candidates (these names will be prefixed with <font size=2 face=Courier><strong>_ _template_ _</strong></font> or <font size=2 face=Courier><strong>_ _ei_ _</strong></font> followed by a mangled version of the symbol name the section contains). Regular expression notation may be used for placement of these sections if manual placement is required. </font>
</p>


<p>
  <a name="1220815"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">See <a href="main43.htm#1220938"><font  color="#0000ff" face="Verdana, Arial, Helvetica, sans-serif"><i>Section

⌨️ 快捷键说明

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