Write a "hello,world!" program in VxWorks v5.5, use Tornado v2.2.
来源:互联网 发布:淘宝店铺推荐 知乎 编辑:程序博客网 时间:2024/06/07 20:13
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.
- Write a "hello,world!" program in VxWorks v5.5, use Tornado v2.2.
- hello world for tornado
- tornado入门,hello world
- hello world (tornado virtualenv)
- Hello world in a container
- 【1】Use Jeb API to Write Script:Hello World
- "Hello world" ,frist program
- Tk GUI toolkit: A Simple Hello World Program
- write hello world
- Startup a JAVA standalone program in UNIX use shell script
- 开始用Tornado:从Hello World开始
- 开始用Tornado:从Hello World开始
- 创建tornado应用输出hello world
- 创建tornado应用输出hello world
- Tomcat v5.5 Server at localhost are already in use
- Hello world in Java
- Hello World in ODE
- Blackberry version "hello world", which use a socket to send msg to a server
- MapFly地图控件的声明
- 使用一段ASP代码实现同一空间绑定多个域名的实例
- 2008年企业信息化市场有啥看头?
- 微软亚洲技术中芯面试题
- 腾讯笔试
- Write a "hello,world!" program in VxWorks v5.5, use Tornado v2.2.
- Bash 实例,第一部分 Bourne again shell (bash) 基本编程
- 在網頁設計中使用mail to,從信箱中會看到一些亂碼加入,而看不到中文在
- Bash 实例,第二部分更多的 bash 基本编程
- Bash 示例,第三部分 ebuild 系统探秘
- Bash 示例,第三部分 ebuild 系统探秘
- DropDownList无限级分类
- C# 控件重叠
- 企业IT 能力成熟度评估