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

📄 c-shell1.html

📁 vxworks相关论文
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><head><link rel="STYLESHEET" type="text/css" href="wrs.css"><title>    Shell   </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-shell.html"><img border="0" alt="[Top]" src="icons/top.gif"></a><a href="c-shell.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="c-shell2.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="83926">6.1  &nbsp;&nbsp;Introduction</a></i></h3></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="83928"> </a>The Tornado shell, WindSh, allows you to download application modules, and to invoke both VxWorks and application module subroutines. This facility has many uses: interactive exploration of the VxWorks operating system, prototyping, interactive development, and testing.</p><dd><p class="Body"><a name="83929"> </a>WindSh can interpret most C language expressions; it can execute most C operators and resolve symbolic data references and subroutine invocations. You can also interact with the shell through a Tcl interpreter, which provides a full set of control structures and lower-level access to target facilities. For a more detailed explanation of the Tcl interface, see <a href="c-shell7.html#86665"><i class="title">6.7&nbsp;Tcl: Shell Interpretation</i></a>. </p><dd><p class="Body"><a name="83930"> </a>WindSh executes on the development host, not the target, but it allows you to spawn tasks, to read from or write to target devices, and to exert full control of the target.<sup><a href="#foot"><b class="FootnoteMarker">1</b></a></sup> Because the shell executes on the host system, you can use it with minimal intrusion on target resources. As with other Tornado tools, only the target agent is required on the target system. Thus, the shell can remain always available; you can use it to maintain a production system if appropriate as well as for experimentation and testing during development.</p><dd><p class="Body"><a name="88998"> </a>Shell operation involves three components of the Tornado system, as shown in <a href="c-shell1.html#89010">Figure&nbsp;6-1</a>.</p></dl><dl class="margin"><p class="listspace"><ul class="Bullet" type="disc"><li><a name="89002"> </a>The <i class="term">shell</i> is where you directly exercise control; it receives your commands and executes them locally on the host, dispatching requests to the target server for any action involving the symbol table or target-resident programs or data.</li></ul></p><p class="listspace"><ul class="Bullet" type="disc"><li><a name="89004"> </a>The <i class="term">target server</i> manages the symbol table and handles all communications with the remote target, dispatching function calls and sending their results back as needed. (The symbol table itself resides entirely on the host, although the addresses it contains refer to the target system.)</li></ul></p><p class="listspace"><ul class="Bullet" type="disc"><li><a name="89006"> </a>The <i class="term">target agent</i> is the only component that runs on the target; it is a minimal monitor program that mediates access to target memory and other facilities.<div class="frame"><h4 class="EntityTitle"><a name="89010"><font face="Helvetica, sans-serif" size="-1" class="sans">Figure 6-1:&nbsp;&nbsp;Tornado and the Shell</font></a></h4><dl class="margin"><div class="Anchor"><a name="89041"> </a><img class="figure" border="0" src="images/c-shella1.gif"></div></dl></div></li></ul></p></dl><dl class="margin"><dd><p class="Body"><a name="91529"> </a>The shell has a dual role:</p></dl><dl class="margin"><p class="listspace"><ul class="Bullet" type="disc"><li><a name="91530"> </a>It acts as a command interpreter that provides access to all VxWorks facilities by allowing you to call any VxWorks routine. </li></ul></p><p class="listspace"><ul class="Bullet" type="disc"><li><a name="91532"> </a>It can be used as a prototyping and debugging tool for the application developer. You can run application modules interactively by calling any application routine. The shell provides notification of any hardware exceptions. See <a href="c-shell2.html#90759"><i class="title">System Modification and Debugging</i></a>, for information about downloading application modules.</li></ul></p></dl><dl class="margin"><dd><p class="Body"><a name="89236"> </a>The capabilities of WindSh include the following:</p></dl><dl class="margin"><ul class="BulletSingle" type="disc"><li><a name="89237"> </a>task-specific breakpoints</li></ul><ul class="BulletSingle" type="disc"><li><a name="89238"> </a>task-specific single-stepping</li></ul><ul class="BulletSingle" type="disc"><li><a name="89239"> </a>symbolic disassembler</li></ul><ul class="BulletSingle" type="disc"><li><a name="89240"> </a>task and system information utilities</li></ul><ul class="BulletSingle" type="disc"><li><a name="89241"> </a>ability to call user routines</li></ul><ul class="BulletSingle" type="disc"><li><a name="89242"> </a>ability to create and examine variables symbolically</li></ul><ul class="BulletSingle" type="disc"><li><a name="89243"> </a>ability to examine and modify memory</li></ul><ul class="BulletSingle" type="disc"><li><a name="89244"> </a>exception trapping</li></ul></dl></dl><a name="foot"><hr></a><p class="FootnoteNumberMarker">1:&nbsp;<span class="Footnote"><a name="83933"> </a>A target-resident version of the shell is also available; for more information, see <i class="title">VxWorks Programmer's Guide: Target Shell</i>.</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-shell.html"><img border="0" alt="[Top]" src="icons/top.gif"></a><a href="c-shell.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="c-shell2.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 + -