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

📄 c-builder5.html

📁 vxworks相关论文
💻 HTML
📖 第 1 页 / 共 2 页
字号:
</tr><tr valign="middle"><td colspan="20"></td></tr></table></p callout><dl class="margin"><dd><p class="Body"><a name="104994"> </a>You can override the default compiler flags for individual files by right-clicking on the file name in the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Files</font></b> view, selecting <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Properties</font></b> from the context menu, and specifying a new set of options in the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Build</font></b> page of the property sheet. Unchecking the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Use default build rule for this file</font></b> box allows you to edit the fields in this page (<a href="c-builder5.html#101121">Figure&nbsp;4-38</a>).<div class="frame"><h4 class="EntityTitle"><a name="101121"><font face="Helvetica, sans-serif" size="-1" class="sans">Figure 4-38:&nbsp;&nbsp;Compiler Options for Individual Files</font></a></h4><dl class="margin"><div class="CellBody"><a name="101126"> </a><img class="figure" border="0" src="images/c-builder44.gif"></div></dl></div></p><dd><p class="Body"><a name="101137"> </a>If the file should be used only when building a ROM-based image, check the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Build for ROM images only</font></b> box. See <a href="c-builder3.html#92122"><i class="title">4.3.4&nbsp;Selecting the VxWorks Image Type</i></a>. </p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H4"><i><a name="91958">Assembler Options</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="101154"> </a>Select the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">assembler</font></b> tab of the build specification property sheet to view assembler options. You can edit the options displayed in the text box (<a href="c-builder5.html#101157">Figure&nbsp;4-39</a>). <div class="frame"><h4 class="EntityTitle"><a name="101157"><font face="Helvetica, sans-serif" size="-1" class="sans">Figure 4-39:&nbsp;&nbsp;Assembler Options</font></a></h4><dl class="margin"><div class="CellBody"><a name="101162"> </a><img class="figure" border="0" src="images/c-builder8.gif"></div></dl></div></p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H4"><i><a name="103358">Link Order Options</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="103359"> </a>Select the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Link Order</font></b> tab of the build specification property sheet to view module link order (<a href="c-builder5.html#103366">Figure&nbsp;4-40</a>). You can change the link order using the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Down</font></b> and <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Up</font></b> buttons to ensure that static C++ constructors and destructors are invoked in the correct order. <div class="frame"><h4 class="EntityTitle"><a name="103366"><font face="Helvetica, sans-serif" size="-1" class="sans">Figure 4-40:&nbsp;&nbsp;Link Order Options</font></a></h4><dl class="margin"><div class="CellBody"><a name="103371"> </a><img class="figure" border="0" src="images/c-buildera3.gif"></div></dl></div></p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H4"><i><a name="101163">Linker Options</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="98438"> </a>Select the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">linker</font></b> tab of the build specification property sheet to view linker options. You can edit the options displayed in the text box (<a href="c-builder5.html#91970">Figure&nbsp;4-41</a>). <div class="frame"><h4 class="EntityTitle"><a name="91970"><font face="Helvetica, sans-serif" size="-1" class="sans">Figure 4-41:&nbsp;&nbsp;Linker Options</font></a></h4><dl class="margin"><div class="CellBody"><a name="91975"> </a><img class="figure" border="0" src="images/c-builder9.gif"></div></dl></div></p><dd><p class="Body"><a name="102868"> </a>To link an object or library (archive) file with a project, list the full path to the file. The recommended way to link library (archive) files is to add the libraries to the list defined by the <b class="symbol_UC">LIBS</b> macro (see <a href="c-builder5.html#93401"><i class="title">Makefile Macros</i></a>).</p></dl></dl><dl class="margin"><dd><p class="table" callout><table border="0" cellpadding="0" cellspacing="0"><tr valign="top"><td valign="top" width="40"><br><img border="0" alt="*" src="icons/warning.gif"></td><td><hr><div class="CalloutCell"><a name="102873"><b class="symbol_UC"><font face="Helvetica, sans-serif" size="-1" class="sans">WARNING:  </font></b></a>You cannot link another project object file (<i class="textVariable">projectName</i><b class="file">.out</b>) with the project you are building. You must compile the other project as a library (see <a href="c-builder2.html#97000"><i class="title">Build Specifications</i></a>), and then link it with the current project.</div></td></tr><tr valign="top"><td></td><td><hr></td></tr><tr valign="middle"><td colspan="20"></td></tr></table></p callout></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H3"><i><a name="91976">4.5.2  &nbsp;&nbsp;Creating New Build Specifications</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="97750"> </a>You can create new build specifications for a project with the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Add New Build Specification </font></b>window, which is displayed with the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">New Build</font></b> option on the context menu. For example, one build specification can be created that includes debug information, and another that does not; specifications can be created for different image types, optimization levels, and so on. You can create a new build specification by copying from an existing specification, or by creating it as a default specification for a given toolchain(<a href="c-builder5.html#91980">Figure&nbsp;4-42</a>). <div class="frame"><h4 class="EntityTitle"><a name="91980"><font face="Helvetica, sans-serif" size="-1" class="sans">Figure 4-42:&nbsp;&nbsp;New Build Specification</font></a></h4><dl class="margin"><div class="CellBody"><a name="91985"> </a><img class="figure" border="0" src="images/c-builder10.gif"></div></dl></div></p><dd><p class="Body"><a name="93420"> </a>Once you have created a new build specification, use the build specification property sheet to define it (see <a href="c-builder5.html#97696"><i class="title">4.5.1&nbsp;Changing a Build Specification</i></a>).</p></dl></dl><dl class="margin"><dd><p class="table" callout><table border="0" cellpadding="0" cellspacing="0"><tr valign="top"><td valign="top" width="40"><br><img border="0" alt="*" src="icons/note.gif"></td><td><hr><div class="CalloutCell"><a name="102527"><b class="symbol_UC"><font face="Helvetica, sans-serif" size="-1" class="sans">NOTE:  </font></b></a>For downloadable applications, it is often useful to create a build specification for the target simulator, and another for the real target hardware. For bootable applications and custom VxWorks images, you are usually restricted to the toolchains that support the CPU required by the BSP. But you can still create different build specifications (for example, with different optimization levels or rules).</div></td></tr><tr valign="top"><td></td><td><hr></td></tr><tr valign="middle"><td colspan="20"></td></tr></table></p callout></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H3"><i><a name="91986">4.5.3  &nbsp;&nbsp;Selecting a Specification for the Current Build</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="92310"> </a>When you want to build your project, select the build specification from the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Build Spec </font></b>drop-down list (<a href="c-builder5.html#91990">Figure&nbsp;4-43</a>). <div class="frame"><h4 class="EntityTitle"><a name="91990"><font face="Helvetica, sans-serif" size="-1" class="sans">Figure 4-43:&nbsp;&nbsp;Build Specification Selection</font></a></h4><dl class="margin"><div class="CellBody"><a name="91995"> </a><img class="figure" border="0" src="images/c-builder11.gif"></div></dl></div></p><dd><p class="Body"><a name="94725"> </a>Binaries produced by a build are created in the <i class="textVariable">buildName</i> subdirectory of your project directory. </p></dl></dl><a name="foot"><hr></a><p class="navbar" align="right"><a href="index.html"><img border="0" alt="[Contents]" src="icons/contents.gif"></a><a href="GuideIX.html"><img border="0" alt="[Index]" src="icons/index.gif"></a><a href="c-builder.html"><img border="0" alt="[Top]" src="icons/top.gif"></a><a href="c-builder4.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="c-builder6.html"><img border="0" alt="[Next]" src="icons/next.gif"></a></p></body></html><!---by WRS Documentation (), Wind River Systems, Inc.    conversion tool:  Quadralay WebWorks Publisher 4.0.11    template:         CSS Template, Jan 1998 - Jefro --->

⌨️ 快捷键说明

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