编写VxWorks的Hello World程序

1、 启动Tornado

2、 建立Downloadable application module,按照自己的意愿设置路径、工程名和工作空间。本例中工作空间和工程均为HelloWorld

3、 选择File|New建立test.c文件并加入到工程。

4、 test.c中输入如下代码:

#include <stdio.h>

 

int first_test(void)

{

  printf("hello world!\n");

}



5、
选择Build|Build创建HelloWorld.out

6、 选择Tools|Simulator启动仿真器。

7、 Files窗口中右击HelloWorld Files,从菜单中选择Download HelloWorld.out

8、 选择Tools|Shell或点击工具条上的Launch Shell按钮,启动Shell

9、 Shell窗口中输入first_test,就可以看到Hello word输出了。

原文地址:https://www.cnblogs.com/zealsoft/p/114545.html