1. Download Tornado V2.2 from web site(http://www.verycd.com/topics/80328/), then install it.
2. Create a project and add a main.c file;
/******************************************************************
* Main.c:
* Author: Wenxy,wen_kernel@163.com, 20080306
* Fix history:
*
*******************************************************************/
#include <vxworks.h>
#include <stdlib.h>
#include <stdio.h>
int Add(int a, int b)
{
return a+b;
}
int main(int argc, char **argv)
{
int a,b,num;
printf("hello world!/n");
a= 1;
b= 2;
printf("%d+%d=%d/n", a,b,Add(a,b));
return 0;
}
3. Compile main.c and Built *.out(Name may be project0.out) file;
4. Start simulate;
5. Download *.out file;
6. Start Shell, then input 'main' and enter. What do you see? :-), that's all.
本文介绍了一个使用Tornado V2.2工具在VxWorks环境下创建并编译项目的步骤。主要内容包括从VeryCD网站下载Tornado V2.2,创建项目,并编写简单的C语言程序进行加法运算。此外还涉及了如何编译程序、模拟运行及加载输出文件。
7503

被折叠的 条评论
为什么被折叠?



