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

📄 c-builder3.html

📁 vxworks相关论文
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<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="102390"><b class="symbol_UC"><font face="Helvetica, sans-serif" size="-1" class="sans">WARNING:  </font></b></a>You can build VxWorks even if there are conflicts between the components you have selected, but you may have linker errors or the runtime results may be unpredictable.</div></td></tr><tr valign="top"><td></td><td><hr></td></tr><tr valign="middle"><td colspan="20"></td></tr></table></p callout><dl class="margin"><dd><p class="Body"><a name="102381"> </a><div class="frame"><h4 class="EntityTitle"><a name="91549"><font face="Helvetica, sans-serif" size="-1" class="sans">Figure 4-29:&nbsp;&nbsp;Component Conflicts</font></a></h4><dl class="margin"><div class="CellBody"><a name="91554"> </a><img class="figure" border="0" src="images/c-builder36.gif"></div></dl></div></p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H4"><i><a name="90617">Changing Component Parameters</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="100961"> </a>In the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">VxWorks</font></b> view, the context menu provides access to component parameters (preprocessor macros). For example, selecting the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">operating system components</font></b> folder, then <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Params for 'operating system components' </font></b>from the context menu (or double-clicking on the folder name), displays a dialog box that allows you to change the values of the parameters defined for the operating system components (<a href="c-builder3.html#90621">Figure&nbsp;4-30</a>). Parameters specific to individual components can be accessed similarly.<div class="frame"><h4 class="EntityTitle"><a name="90621"><font face="Helvetica, sans-serif" size="-1" class="sans">Figure 4-30:&nbsp;&nbsp;Component Parameters</font></a></h4><dl class="margin"><div class="CellBody"><a name="90626"> </a><img class="figure" border="0" src="images/c-builder30.gif"></div></dl></div> </p><dd><p class="Body"><a name="105704"> </a>For more information about component parameters, see the <i class="title">VxWorks Programmer's Guide</i> and the <i class="title">VxWorks Network Programmer's Guide</i>. </p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H4"><i><a name="90699">Estimating Total Component Size</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="90700"> </a>To calculate and display the estimated size of the components included in an image, select the project name (in any of the workspace views), then select <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Properties</font></b> from the context menu, and select the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Size</font></b> tab in the property sheet that appears (<a href="c-builder3.html#90706">Figure&nbsp;4-31</a>). Note that this estimate is for the components only, and does not include the BSP or any application code. <div class="frame"><h4 class="EntityTitle"><a name="90706"><font face="Helvetica, sans-serif" size="-1" class="sans">Figure 4-31:&nbsp;&nbsp;Total Component Size</font></a></h4><dl class="margin"><div class="CellBody"><a name="90711"> </a><img class="figure" border="0" src="images/c-builder37.gif"></div></dl></div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H3"><i><a name="92122">4.3.4  &nbsp;&nbsp;Selecting the VxWorks Image Type</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="92123"> </a>The default VxWorks is a RAM-based image. If you want to create something other than the default, double click on the build name in the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Builds</font></b> view to display the property sheet for that build. Then select the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Rules</font></b> tab, use the drop-down list to select the type of VxWorks image that you want to build, and click <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">OK</font></b> (<a href="c-builder3.html#92126">Figure&nbsp;4-32</a>). <div class="frame"><h4 class="EntityTitle"><a name="92126"><font face="Helvetica, sans-serif" size="-1" class="sans">Figure 4-32:&nbsp;&nbsp;Build Rules for VxWork Images</font></a></h4><dl class="margin"><div class="CellBody"><a name="92131"> </a><img class="figure" border="0" src="images/c-builder14.gif"></div></dl></div></p><dd><p class="Body"><a name="92132"> </a>The options available for a VxWorks image are:</p></dl><dl class="margin"><dd><div class="Item"><a name="92133"> </a><b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">vxWorks</font></b></div><dl class="margin"><dd><div class="Indent"><a name="92134"> </a>A RAM-based image, usually loaded into memory by a VxWorks boot ROM. This is the default development image.</div><br></dl><dd><div class="Item"><a name="92135"> </a><b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">vxWorks_rom</font></b> </div><dl class="margin"><dd><div class="Indent"><a name="92136"> </a>A ROM-based image that copies itself to RAM before executing. This image generally has a slower startup time, but a faster execution time than <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">vxWorks_romResident</font></b>.</div><br></dl><dd><div class="Item"><a name="92137"> </a><b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">vxWorks_romCompress</font></b> </div><dl class="margin"><dd><div class="Indent"><a name="92138"> </a>A compressed ROM image that copies itself to RAM and decompresses before executing. It takes longer to boot than <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">vxWorks_rom</font></b> but takes up less space than other ROM-based images (nearly half the size). The run-time execution is the same speed as <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">vxWorks_rom</font></b>.</div><br></dl><dd><div class="Item"><a name="92139"> </a><b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">vxWorks_romResident</font></b> </div><dl class="margin"><dd><div class="Indent"><a name="102411"> </a>A ROM-resident image. Only the data segment is copied to RAM on startup. It has the fastest startup time and uses the smallest amount of RAM. Typically, however, it runs slower than the other ROM images because ROM access is slower.</div><br></dl></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="102431"><b class="symbol_UC"><font face="Helvetica, sans-serif" size="-1" class="sans">NOTE:  </font></b></a>Project files used only for a ROM-based image can be flagged as such, so that they are only used when a ROM-based image is built. See <a href="c-builder5.html#93389"><i class="title">Compiler Options</i></a>.</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="90720">4.3.5  &nbsp;&nbsp;Building VxWorks</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="92110"> </a>VxWorks projects are built in the same manner as downloadable applications. To build a project with the default options, select the name of the project (or any subordinate object in its folder) and then select the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Build</font></b> option from the context menu. The name of the build specification that will be used is displayed in the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Build</font></b> drop-down list at the top of the workspace window. </p><dd><p class="Body"><a name="105674"> </a>See <a href="c-builder2.html#88884"><i class="title">4.2.4&nbsp;Building a Downloadable Application</i></a> for more information about a generic build, and <a href="c-builder5.html#98349"><i class="title">4.5&nbsp;Working With Build Specifications</i></a> for information about modifying builds and creating new build configurations. </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="105679"><b class="symbol_UC"><font face="Helvetica, sans-serif" size="-1" class="sans">NOTE:  </font></b></a>All source files in a project are built using a single build specification (which includes a specific set of makefile, compiler, and linker options) at a time. If some of your source requires a different build specification from the rest, you can create a project for it in the same workspace, and customize the build specification for those files. One project's build specification can then be modified to link in the output from the other project. See <a href="c-builder5.html#101163"><i class="title">Linker Options</i></a>. </div></td></tr><tr valign="top"><td></td><td><hr></td></tr><tr valign="middle"><td colspan="20"></td></tr></table></p callout><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="104970"><b class="symbol_UC"><font face="Helvetica, sans-serif" size="-1" class="sans">WARNING:  </font></b></a>The default compiler options include <b class="command">-g</b> for debugging information. Using <b class="command">-g</b> with the optimization option <b class="command">-O </b>set to anything but zero may produce unexpected results. See <a href="c-builder5.html#98349"><i class="title">4.5&nbsp;Working With Build Specifications</i></a> for information about modifying builds and creating new build configurations.</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="92104">4.3.6  &nbsp;&nbsp;Booting VxWorks</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="91481"> </a>For information about booting VxWorks (and bootable applications) see <a href="c-start5.html#92648"><i class="title">2.5&nbsp;Booting VxWorks</i></a>. VxWorks images for the target simulator can be downloaded and booted with the context-menu <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Start </font></b>command. </p></dl></dl><a name="foot"><hr></a><p class="FootnoteNumberMarker">1:&nbsp;<span class="Footnote"><a name="100535"> </a>You can modify the default behavior by un-checking the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Show this window on startup</font></b> box at the bottom of the window.</span><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-builder2.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="c-builder4.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 + -