亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? programming.sgml

?? eCos操作系統(tǒng)源碼
?? SGML
?? 第 1 頁 / 共 4 頁
字號:
</para><FIGURE id="programming-run-properties"><TITLE>Properties dialog box</TITLE><GRAPHIC ENTITYREF="graphic25"></GRAPHIC></FIGURE><para>Click OK on this dialog and go back to the <emphasis>RunTests</emphasis> dialog. Press the <emphasis>Run</emphasis> button andthe selected test will be downloaded and run. The<emphasis>Output</emphasis> tab will show you how this isprogressing. If it seems to stop for a long time, check that thetarget board is correctly connected, and that <productname>eCos</productname> has been correctlyconfigured -- especially the start-up type.</para><para>When the program runs you should see a couple of line similar to this appear:</para><PROGRAMLISTING>PASS:&lt;Binary Semaphore 0 OK&gt;EXIT:&lt;done&gt;</PROGRAMLISTING><para>This indicates that the test has run successfully.</para><PARA>See <xref linkend="config-tool-test-execution"> forfurther details.</PARA></SECT1><!-- ==================================================== --><SECT1 id="using-commandline-testcase"><TITLE>Using the command line</TITLE><PARA>Start a command shell (such as a Cygwin shell window in Windows)with the environment variables set as described in the toolchaindocumentation.  Change to the directory in which you set up your buildtree, and invoke <!-- <index></index> --> GDB on the testprogram.</PARA><PARA>To run the <!-- <index></index> -->bin_sem0 test (which willtest the kernel for the correct creation and destruction of binarysemaphores) type: </PARA><PROGRAMLISTING>$ <replaceable>TARGET-</replaceable>gdb -nw install/tests/kernel/<replaceable>&Version;</replaceable>/tests/bin_sem0</PROGRAMLISTING><PARA>You should see output similar to the following in the commandwindow:</PARA><PROGRAMLISTING>GNU gdb THIS-GDB-VERSIONCopyright 2001 Free Software Foundation, Inc.GDB is free software, covered by the GNU General Public License, and you arewelcome to change it and/or distribute copies of it under certain conditions.Type "show copying" to see the conditions.There is absolutely no warranty for GDB.  Type "show warranty" for details.This GDB was configured as "--host=THIS-HOST --target=THIS-TARGET".(gdb)</PROGRAMLISTING><PARA>If you are trying to run a synthetic target test on <!--<index></index> -->Linux, skip the following connection and downloadsteps. Otherwise, connect to the target by typing: </PARA><PROGRAMLISTING>(gdb) set remotebaud 38400(gdb) target remote /dev/ttyS0</PROGRAMLISTING><PARA>on Linux or</PARA><PROGRAMLISTING>(gdb) set remotebaud 38400(gdb) target remote com1</PROGRAMLISTING><PARA>on Windows or</PARA><PROGRAMLISTING>(gdb) target sim</PROGRAMLISTING><para>to use a simulator in either host O/S.</para><para>Check the documentation for the target board for the actual baud rateto use when connecting to real targets.</para><PARA>You will see output similar to the following: </PARA><programlisting width=72>Remote debugging using /dev/ttyS10x0000d50c in ?? ()    at <replaceable>BASE_DIR</replaceable>/kernel/<replaceable>&Version;</replaceable>/src/common/kapi.cxx:345Current language:  auto; currently c++(gdb) </programlisting><para>Or if you are using the simulator:</para><PROGRAMLISTING>Connected to the simulator.(gdb)</PROGRAMLISTING><PARA>Now download the program to the target with</PARA><PROGRAMLISTING>(gdb) load</PROGRAMLISTING><PARA>You should see output similar to the following on your screen: </PARA><PROGRAMLISTING>Loading section .text, size 0x4b04 lma 0x108000Loading section .rodata, size 0x738 lma 0x10cb08Loading section .data, size 0x1c0 lma 0x10d240Start address 0x108000, load size 21500Transfer rate: 24571 bits/sec, 311 bytes/write.(gdb)</PROGRAMLISTING><PARA>You are now ready to run your program. If you type: </PARA><PROGRAMLISTING>(gdb) continue</PROGRAMLISTING><PARA>you will see output similar to the following: </PARA><PROGRAMLISTING>Continuing.PASS:&lt;Binary Semaphore 0 OK&gt;EXIT:&lt;done&gt;</PROGRAMLISTING><NOTE><PARA> If you are using a simulator or the synthetic target rather	    than real hardware, you must use the GDB command	    &ldquo;run&rdquo; rather than &ldquo;continue&rdquo; to	    start your program.</PARA></NOTE><PARA>You can terminate your GDB session with<EMPHASIS>Control+C</EMPHASIS>, otherwise it will sit in the&ldquo;idle&rdquo; thread and use up CPU time. This is not a problemwith real targets, but may have undesirable effects in simulated orsynthetic targets. Type <command>quit</command> and you aredone. </PARA></SECT1><!-- ==================================================== --><SECT1 id="testing-filters"><TITLE>Testing Filters</TITLE><PARA>While most test cases today run solely in the target environment,some packages may require external testing infrastructure and/orfeedback from the external environment to do complete testing.</PARA><PARA>The serial package is an example of this. The network packagealso contains some tests that require programs to be run on ahost. See the network <citetitle>Tests and Demonstrations</citetitle>section in the network documentation in the <citetitle><productname>eCos</productname> ReferenceGuide</citetitle>. Here we will concentrate on the serial tests sincethese are applicable to more targets.</para><PARA>Since the serial line is also used for communication withGDB, a  filter is inserted in the communication pathway betweenGDB and the serial device which is connected to the hardware target.The filter forwards all communication between the two, but alsolistens for special commands embedded in the data stream from thetarget.</PARA><PARA>When such a command is seen, the filter stops forwarding datato GDB from the target and enters a special mode. In this modethe test case running on the target is able to control the filter,commanding it to run various tests. While these tests run, GDB isisolated from the target.</PARA><PARA>As the test completes (or if the filter detects a target crash)the communication path between GDB and the hardware target is re-established,allowing GDB to resume control.</PARA><PARA>In theory, it is possible to extend the filter to providea generic framework for other target-external testing components,thus decoupling the testing infrastructure from the (possibly limited)communication means provided by the target (serial, JTAG, Ethernet,etc). </PARA><PARA>Another advantage is that the host tools do not need toknow about the various testing environments required by the <productname>eCos</productname>packages, since all contact with the target continues to happenvia GDB.</PARA></sect1></CHAPTER><!-- ==================================================== --><CHAPTER ID="BUILDING-AND-RUNNING-SAMPLE-APPLIATIONS"><!-- <conditionaltext> --><TITLE><!-- <xref> -->Building and <!-- <index></index> -->Running Sample Applications</TITLE><PARA>The example programs in this tutorial are included, alongwith a <filename>Makefile</filename>, in the <filename>examples</filename> directoryof the <productname>eCos</productname> distribution. The first program you will run is a <EMPHASIS>helloworld</EMPHASIS>-style application, then you will run a more complexapplication that demonstrates the creation of threads and the useof cyg_thread_delay(), and finally you will runone that uses clocks and alarm handlers.</PARA><PARA>The <filename>Makefile</filename> depends on an externallydefined variable to find the <productname>eCos</productname> library and header files. Thisvariable is <literal>INSTALL_DIR</literal> and must be set to thepathname of the install directory created in <xreflinkend="using-configtool-windows-linux">.</PARA><para><literal>INSTALL_DIR</literal> may be either be set in the shellenvironment or may be supplied on the command line. To set it in theshell do the following in a <command>bash</command> shell:</para><programlisting width=72>$ export INSTALL_DIR=BASE_DIR/ecos-work/arm_install</programlisting><para>You can then run <command>make</command> without any extra parametersto build the examples.</para><para>Alternatively, if you can do the following:</para><programlisting width=72>$ make INSTALL_DIR=BASE_DIR/ecos-work/arm_install</programlisting><!-- ==================================================== --><SECT1 id="ecos-hello-world"><TITLE><productname>eCos</productname> Hello World</TITLE><PARA>The following code is found in the file <FILENAME><!-- <index></index> -->hello.c</FILENAME>in the <FILENAME>examples</FILENAME> directory: </PARA><SECT2><TITLE><productname>eCos</productname><!-- <index></index> --> hello world program listing</TITLE><PROGRAMLISTING>/* this is a simple hello world program */#include &lt;stdio.h&#62;int main(void){ printf("Hello, eCos world!\n"); return 0;}</PROGRAMLISTING><PARA>To compile this or any other program that is not part of the<productname>eCos</productname> distribution, you can follow the procedures described below. Typethis explicit compilation command (assuming your current workingdirectory is also where you built the <productname>eCos</productname> kernel):</PARA><PROGRAMLISTING>$ <replaceable>TARGET-</replaceable>gcc -g -I<replaceable>BASE_DIR</replaceable>/ecos-work/install/include hello.c -L<replaceable>BASE_DIR</replaceable>/ecos-work/install/lib -Ttarget.ld -nostdlib</PROGRAMLISTING><PARA>The compilation command above contains some standard GCCoptions (for example, <OPTION>-g</OPTION> enables debugging), as wellas some mention of paths(<OPTION>-I<replaceable>BASE_DIR</replaceable>/ecos-work/install/include</OPTION> allows fileslike <FILENAME>cyg/kernel/kapi.h</FILENAME> to be found, and<OPTION>-L<replaceable>BASE_DIR</replaceable>/ecos-work/install/lib</OPTION> allows the linker tofind <OPTION>-Ttarget.ld</OPTION>). </PARA><PARA>The executable program will be called <FILENAME>a.out</FILENAME>. </PARA><NOTE><PARA>Some target systems require special options to be passed togcc to compile correctly for that system. Please examine the Makefilein the examples directory to see if this applies to your target.</PARA></NOTE><PARA>You can now run the resulting program using GDB in exactly thesame the way you ran the test case before. The procedure will be thesame, but this time run<command><replaceable>TARGET-</replaceable>gdb</command> specifying<option>-nw a.out</option> on the command line:</PARA><PROGRAMLISTING>$ <replaceable>TARGET-</replaceable>gdb -nw a.out</PROGRAMLISTING><PARA>For targets other than the synthetic linux target, you shouldnow run the usual GDB commands described earlier. Once this is done,typing the command "continue" at the (gdb) prompt ("run" forsimulators) will allow the program to execute and print the string"Hello, eCos world!" on your screen.</PARA><PARA>On the synthetic linux target, you may use the "run" commandimmediately - you do not need to connect to the target, nor use the"load" command.<!-- <conditionaltext> --></PARA></SECT2></SECT1><!-- ==================================================== --><SECT1 id="sample-twothreads"><TITLE>A Sample Program with Two Threads</TITLE><PARA>Below is a program that uses some of <productname>eCos</productname>' system calls. Itcreates two threads, each of which goes into an infinite loop in whichit sleeps for a while (using cyg_thread_delay()).  This code is foundin the file <filename><!-- <index></index> -->twothreads.c</filename>in the examples directory.</PARA><SECT2><TITLE><productname>eCos</productname> <!-- <index></index> -->two-threaded program listing</TITLE>

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品亚洲免费视频| 性做久久久久久免费观看| 国产一二精品视频| 久久久久久久电影| 成人午夜免费av| 中文字幕一区二区三区蜜月| av成人免费在线| 亚洲永久精品大片| 91精品国产综合久久蜜臀| 激情五月播播久久久精品| 国产日韩高清在线| 色天天综合久久久久综合片| 亚洲第一电影网| 久久先锋影音av| 91一区二区在线观看| 午夜精品久久久| 久久新电视剧免费观看| 91丝袜国产在线播放| 日韩精品乱码av一区二区| 精品少妇一区二区三区免费观看 | 日韩欧美你懂的| 成人免费高清在线| 亚洲国产精品一区二区www在线| 日韩女优视频免费观看| 成人av电影在线| 免费观看日韩电影| 中文字幕在线不卡一区| 欧美久久高跟鞋激| 成人精品小蝌蚪| 蜜臀99久久精品久久久久久软件| 国产精品视频yy9299一区| 欧美日韩aaa| 91一区二区在线观看| 麻豆91免费看| 亚洲专区一二三| 欧美高清在线精品一区| 91精品欧美久久久久久动漫| eeuss国产一区二区三区| 久久99精品一区二区三区| 亚洲人成小说网站色在线| 欧美电影免费观看高清完整版在 | 在线观看国产91| 国产在线一区观看| 婷婷六月综合亚洲| 亚洲乱码中文字幕| 中文字幕国产一区二区| 日韩欧美一区二区视频| 日韩一区二区在线观看| 91免费国产在线| 国产福利不卡视频| 蜜桃视频一区二区| 午夜欧美2019年伦理| 亚洲欧美另类小说| 国产女人18水真多18精品一级做| 91精品视频网| 欧美精品久久天天躁| 91成人免费网站| 99视频在线观看一区三区| 国产乱对白刺激视频不卡| 免费成人小视频| 丝袜a∨在线一区二区三区不卡| 国产精品福利影院| 国产亚洲欧美激情| 国产欧美日韩不卡| 久久久影视传媒| 精品国产在天天线2019| 日韩免费高清av| 精品伦理精品一区| 精品国偷自产国产一区| 日韩美女一区二区三区四区| 777xxx欧美| 日韩一区二区高清| 精品国产一区二区三区不卡| 日韩欧美国产综合| 2020国产精品久久精品美国| 欧美mv和日韩mv的网站| 久久老女人爱爱| 国产欧美日韩久久| 国产精品久久久久影院色老大| 中文字幕 久热精品 视频在线| 国产欧美日韩另类一区| 国产精品久久一卡二卡| 亚洲欧美在线观看| 亚洲国产一区二区a毛片| 亚洲韩国精品一区| 麻豆一区二区三| 国产在线国偷精品免费看| 国产精品香蕉一区二区三区| 国产成人亚洲精品狼色在线| 成人免费高清在线| 日本高清视频一区二区| 欧美日韩国产综合久久| 日韩午夜精品电影| 26uuu成人网一区二区三区| 久久精品这里都是精品| 亚洲人成网站色在线观看| 亚洲午夜久久久久| 美女视频黄久久| 成人污视频在线观看| 91国偷自产一区二区三区成为亚洲经典 | 亚洲亚洲人成综合网络| 午夜视频一区在线观看| 久久激情五月激情| 成人免费高清视频在线观看| 欧美在线视频不卡| 精品久久久三级丝袜| 国产区在线观看成人精品 | 国产成a人亚洲| 91福利区一区二区三区| 欧美电影免费提供在线观看| 国产精品不卡在线| 偷拍亚洲欧洲综合| 国产激情视频一区二区在线观看| jlzzjlzz欧美大全| 91麻豆精品国产91久久久久久久久 | 色成人在线视频| 日韩一级片在线观看| 日本一区二区三区电影| 三级久久三级久久久| 成人性生交大片免费看视频在线| 欧美系列日韩一区| 久久精品亚洲一区二区三区浴池| 亚洲精品视频一区二区| 黄一区二区三区| 欧美亚洲国产bt| 久久精品人人做人人综合 | 91麻豆精品国产无毒不卡在线观看| 久久精品男人天堂av| 午夜免费欧美电影| 国产激情一区二区三区| 欧美一区二区观看视频| 亚洲日本在线观看| 国产成人av自拍| 在线播放中文字幕一区| 亚洲精品免费在线观看| 狠狠色综合播放一区二区| 欧美日韩视频在线一区二区| 国产日韩欧美不卡| 久久99久久久久久久久久久| 欧美自拍丝袜亚洲| 综合婷婷亚洲小说| 国产91丝袜在线播放| 亚洲人成7777| 成人短视频下载| 国产欧美一区二区在线| 美女一区二区三区在线观看| 欧美精品亚洲一区二区在线播放| 亚洲欧美一区二区三区国产精品| 国产精品资源在线观看| 日韩免费在线观看| 美女诱惑一区二区| 欧美一区二区三区人| 五月激情综合婷婷| 欧美男女性生活在线直播观看| 亚洲一二三级电影| 欧美在线观看18| 亚洲一区二区精品久久av| 97久久精品人人做人人爽50路| 久久久.com| 国产成人综合视频| 国产嫩草影院久久久久| 国产精品91一区二区| 久久久久国产精品麻豆ai换脸| 美女久久久精品| 精品久久一区二区| 黄色小说综合网站| 国产女主播在线一区二区| 国产成人一区在线| 国产三级欧美三级日产三级99 | 成人动漫中文字幕| 国产精品久久久久婷婷二区次| 成人a免费在线看| 自拍偷拍亚洲综合| 91福利国产精品| 亚洲成人1区2区| 精品人在线二区三区| 国产一区日韩二区欧美三区| 国产亚洲短视频| 99精品国产视频| 亚洲影视在线观看| 欧美精品久久久久久久多人混战| 日韩福利电影在线| 精品日韩在线观看| 99久久免费视频.com| 亚洲国产一二三| 精品国产青草久久久久福利| 国产精品888| 尤物在线观看一区| 7777精品伊人久久久大香线蕉的 | 日韩情涩欧美日韩视频| 国产一区二区影院| 樱桃国产成人精品视频| 911精品国产一区二区在线| 免费一级欧美片在线观看| 久久久精品2019中文字幕之3| www.视频一区| 婷婷开心久久网| 欧美韩日一区二区三区| 欧洲亚洲国产日韩| 国产一区在线观看麻豆|