📄 st20cc4.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 13:43:59">
<title>9.3 Support for C++</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="st20cc3.htm"><img src="images/navprev.gif" width="80" height="23"
border="0" alt="PREV"> </a></td>
<td><a href="st20cc5.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="1209755"> </a><font color="#003366" face="Verdana, Arial, Helvetica, sans-serif">9.3 Support for C++</font>
</h2><hr>
<p>
<a name="1209756"> </a><font size=2 face="Verdana, Arial, Helvetica, sans-serif">C++ programs follow a similar development path to C programs. The <strong>st20cc</strong> compile/link driver provides a single tool user interface to all stages of the C++ compilation and link, which the user can control via command line options. The C++ program can then be run and debugged via <strong>st20run</strong>, in a similar manner to a C program.</font>
</p>
<p>
<a name="1209757"> </a><font size=2 face="Verdana, Arial, Helvetica, sans-serif">When processing C++ code, <strong>st20cc</strong> invokes the Edison Design Group (EDG) preprocessor to convert C++ into C. This process is invisible.</font>
</p>
<p>
<a name="1209758"> </a><font size=2 face="Verdana, Arial, Helvetica, sans-serif">The toolset's current implementation of the EDG 3.0 preprocessor supports the full ISO C++ standard.</font>
</p>
<p>
<a name="1209759"> </a><font size=2 face="Verdana, Arial, Helvetica, sans-serif">STMicroelectronics cannot guarantee C++ object and library compatibility with this toolset because it uses a preprocessor supplied by a third party which may change in subsequent releases. Users may have to recompile C++ source code when migrating to subsequent releases of the toolset.</font>
</p>
<p>
<a name="1209760"> </a><font size=2 face="Verdana, Arial, Helvetica, sans-serif">For further information on the C++ language; see the ANSI approved ISO C++ International Standard ISO/IEC 14882:1998(E) and the definitive texts <font face="Verdana, Arial, Helvetica, sans-serif"><i>The C++ Programming Language</i></font> by Bjarne Stroustrup, Addison-Wesley ISBN 0201-88954-4 and <em>The C++ Standard Library</em> by Nicolai M. Josuttis, Addison-Wesley ISBN 0-201-37926-0.</font>
</p>
<p>
<a name="1209763"> </a><font size=2 face="Verdana, Arial, Helvetica, sans-serif">The chapter <em>C++ Language Features for the EDG preprocessor</em> in the <em>ST20 Embedded Toolset Reference Manual</em> provides details of language implementation for the EDG preprocessor.</font>
</p>
<h3>
<a name="1209766"> </a><font color="#003366" face="Verdana, Arial, Helvetica, sans-serif">9.3.1 C++ driver</font>
</h3>
<p>
<a name="1209767"> </a><font size=2 face="Verdana, Arial, Helvetica, sans-serif">For C++ programs, <strong>st20cc</strong> invokes the phases of a C++ program compilation in the correct order. <a href="st20cc4.htm#1209843"><font color="#0000ff" face="Verdana, Arial, Helvetica, sans-serif"><i>Figure
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -