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

📄 c-builder2.html

📁 vxworks相关论文
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><head><link rel="STYLESHEET" type="text/css" href="wrs.css"><title>    Projects   </title></head><body bgcolor="FFFFFF"><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-builder1.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="c-builder3.html"><img border="0" alt="[Next]" src="icons/next.gif"></a></p><font face="Helvetica, sans-serif" class="sans"><h3 class="H2"><i><a name="88840">4.2  &nbsp;&nbsp;Creating a Downloadable Application</a></i></h3></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="88844"> </a>A downloadable application is a collection of relocateable object modules that can be downloaded and dynamically linked to VxWorks, and started from the shell or debugger. A downloadable application can consist of a single "hello world" routine or a complex application.</p><dd><p class="Body"><a name="92591"> </a>To create a downloadable application, you must:</p></dl><dl class="margin"><p><ol class="List"><li value="1."><a name="92582"> </a>Create a project for a downloadable application.</li></ol></p><p><ol class="List"><li value="2."><a name="88854"> </a>Write your application, or use an existing one. </li></ol></p><p><ol class="List"><li value="3."><a name="88856"> </a>Add the application files to the project.</li></ol></p><p><ol class="List"><li value="4."><a name="88860"> </a>Build the project.</li></ol></p></dl><dl class="margin"><dd><p class="Body"><a name="88862"> </a>You can then download the object module(s) to the target system and run the application. </p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H3"><i><a name="91858">4.2.1  &nbsp;&nbsp;Creating a Project for a Downloadable Application</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="95509"> </a>All work that you do with the project facility, whether a downloadable application, a customized version of VxWorks, or a bootable application, takes place in the context of a project. </p><dd><p class="Body"><a name="95510"> </a>If the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Create Project </font></b>window is open (the default when you first start Tornado<sup><a href="#foot"><b class="FootnoteMarker">1</b></a></sup>), click the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">New</font></b> tab. Otherwise, click <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">File</font></b>&gt;<b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">New Project</font></b>. Then choose the selection for a downloadable application, and click <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">OK </font></b>(<a href="c-builder2.html#99851">Figure&nbsp;4-3</a>)<div class="frame"><h4 class="EntityTitle"><a name="99851"><font face="Helvetica, sans-serif" size="-1" class="sans">Figure 4-3:&nbsp;&nbsp;Create Downloadable Application</font></a></h4><dl class="margin"><div class="CellBody"><a name="99856"> </a><img class="figure" border="0" src="images/c-builder12.gif"></div></dl></div>. </p><dd><p class="Body"><a name="96363"> </a>The application wizard appears. This wizard is a tool that guides you through the steps of creating a new project. </p><dd><p class="Body"><a name="105590"> </a>First, enter the full directory path and name of the directory you want to use for the project (only one project is allowed in a directory), and enter the project name. It is usually most convenient to use the same name for the directory and project, but it is not required. </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="105359"><b class="symbol_UC"><font face="Helvetica, sans-serif" size="-1" class="sans">NOTE:  </font></b></a>You may create your projects anywhere on your file system. However, it is preferable to create them outside of the Tornado directory tree to simplify the process of future Tornado upgrades.</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="105352"> </a>You may also enter a description of the project, which will later appear in the property sheet for the project (<a href="c-builder2.html#95542">Figure&nbsp;4-4</a>). Finally, identify the workspace in which the project should be created. Click <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Next </font></b>to continue. <div class="frame"><h4 class="EntityTitle"><a name="95542"><font face="Helvetica, sans-serif" size="-1" class="sans">Figure 4-4:&nbsp;&nbsp;Application Wizard: Step One for Downloadable Application</font></a></h4><dl class="margin"><div class="CellBody"><a name="95547"> </a><img class="figure" border="0" src="images/c-builder17.gif"></div></dl></div> </p><dd><p class="Body"><a name="99909"> </a>Then you identify the toolchain with which the downloadable application will be built. You can do so by referencing an existing project, or by identifying a toolchain. Basing a project on an existing one means that the new project will reference the same source files and build specifications as the one on which it was based. Once the new project has been created, its build specifications can be modified without affecting the original project, but changes to any shared source files will be reflected in both. </p><dd><p class="Body"><a name="103018"> </a>For example, to create a project that will run on the target simulator, select <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">A toolchain </font></b>and select the default option for the target simulator from the drop-down list (<a href="c-builder2.html#99912">Figure&nbsp;4-5</a>).<sup><a href="#foot"><b class="FootnoteMarker">2</b></a></sup> Click <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Next</font></b>.<div class="frame"><h4 class="EntityTitle"><a name="99912"><font face="Helvetica, sans-serif" size="-1" class="sans">Figure 4-5:&nbsp;&nbsp;Application Wizard: Step Two for Downloadable Application</font></a></h4><dl class="margin"><div class="CellBody"><a name="99917"> </a><img class="figure" border="0" src="images/c-builder18.gif"></div></dl></div></p><dd><p class="Body"><a name="95575"> </a>The wizard confirms your selections (<a href="c-builder2.html#96380">Figure&nbsp;4-6</a>) Click <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Finish</font></b>.<div class="frame"><h4 class="EntityTitle"><a name="96380"><font face="Helvetica, sans-serif" size="-1" class="sans">Figure 4-6:&nbsp;&nbsp;Application Wizard: Step Three for Downloadable Application</font></a></h4><dl class="margin"><div class="CellBody"><a name="96385"> </a><img class="figure" border="0" src="images/c-builder15.gif"></div></dl></div> </p><dd><p class="Body"><a name="96470"> </a>The <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Workspace</font></b> window appears, containing a folder for the project. Note that the window title includes the name of the workspace (<a href="c-builder2.html#95579">Figure&nbsp;4-7</a>). <div class="frame"><h4 class="EntityTitle"><a name="95579"><font face="Helvetica, sans-serif" size="-1" class="sans">Figure 4-7:&nbsp;&nbsp;Initial Workspace Window for a Downloadable Application</font></a></h4><dl class="margin"><div class="CellBody"><a name="95584"> </a><img class="figure" border="0" src="images/c-builder20.gif"></div></dl></div> </p></dl><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="102136"><b class="symbol_UC"><font face="Helvetica, sans-serif" size="-1" class="sans">NOTE:  </font></b></a>Context menus provide access to all commands that can be used with the objects displayed in, and the pages that make up, the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Workspace</font></b> window (use the right mouse button).</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="95816">4.2.2  &nbsp;&nbsp;Project Files for a Downloadable Application</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="95817"> </a>The project facility generates a set of files whose contents are based on your selection of project type, toolchain, build options, and build configurations. During typical use of the project facility you need not be concerned with these files, except to avoid accidental deletion, to check them in or out of a source management system, or to share your projects or workspaces with others. The files are created in the directories you identify for the workspace and project. The files initially created are:</p></dl><dl class="margin"><dd><div class="Item"><a name="100661"> </a><i class="textVariable">projectName</i><b class="file">.wpj</b></div><dl class="margin"><dd><div class="Indent"><a name="100662"> </a>Contains information about the project used for generating the project makefile. </div><br></dl><dd><div class="Item"><a name="100663"> </a><i class="textVariable">workspaceName</i><b class="file">.wsp</b></div><dl class="margin"><dd><div class="Indent"><a name="100664"> </a>Contains information about the workspace, including which projects belong to it. </div><br></dl></dl><dl class="margin"><dd><p class="Body"><a name="96476"> </a>Both of these files contain information that changes as you modify your project, and add projects to, or delete projects from, the workspace.</p><dd><p class="Body"><a name="96405"> </a>When you build your application, a makefile is dynamically generated in the main project directory, and a subdirectory is created containing the objects produced by the build. The subdirectory is named after the selected build specification. If other build specifications are created and used for other builds, parallel directories are created for their objects. </p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H3"><i><a name="85081">4.2.3  &nbsp;&nbsp;Working With Application Files</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="85162"> </a>The <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Files</font></b> view of the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Workspace</font></b> window displays information about the projects, and the directories and files that make up a project (<a href="c-builder2.html#85801">Figure&nbsp;4-8</a>). <div class="frame"><h4 class="EntityTitle"><a name="85801"><font face="Helvetica, sans-serif" size="-1" class="sans">Figure 4-8:&nbsp;&nbsp;Workspace Files View</font></a></h4><dl class="margin"><div class="CellBody"><a name="85805"> </a><img class="figure" border="0" src="images/c-builder22.gif"></div></dl></div> </p><dd><p class="Body"><a name="105383"> </a>The first level of folders in the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Files</font></b> view are projects. Each project folder contains:</p></dl><dl class="margin">

⌨️ 快捷键说明

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