当前位置:网站首页>The great idea of NS2
The great idea of NS2
2022-07-27 16:21:00 【bamboogz99】
Here is my understanding about ns2. Just my understanding!!!!
Ok, NS2 is a good combination of C++ and OTCL(OTCL is an object-oriented TCL). In fact, high-efficient C/C++ language can be used to simulate the complexity of data exchange between different ISO layers, also can be used compuatation. However, its' interactivity is bad. If you have change a parameter, you'll have to compile the whole package, then run it. Oh, it will be very time-consuming. For example, it'll cost 15 minutes to 'make' the ns2 source in my X31 laptop.
So what's tcl? As I understand, it's a script language like shell language, such as bash, command(DOS). It is interactive. You input something, it'll reponse you immediately. Yeah, you may be thought of something.
Yeah, how about we combine them together. This is what the elites of ns2 developer have done. Their great effort creates the NS2.
In the above scenario, when you input a parameter, TCL interpreter will transfer it to the C++ code, then C++ code will run with the parameter and return the result. So you have to connect with tcl interferace, C++ code will do the next.
In fact, when you run ns2, it's looks like a tcl interpreter.
Ok, NS2 is a good combination of C++ and OTCL(OTCL is an object-oriented TCL). In fact, high-efficient C/C++ language can be used to simulate the complexity of data exchange between different ISO layers, also can be used compuatation. However, its' interactivity is bad. If you have change a parameter, you'll have to compile the whole package, then run it. Oh, it will be very time-consuming. For example, it'll cost 15 minutes to 'make' the ns2 source in my X31 laptop.
So what's tcl? As I understand, it's a script language like shell language, such as bash, command(DOS). It is interactive. You input something, it'll reponse you immediately. Yeah, you may be thought of something.
Yeah, how about we combine them together. This is what the elites of ns2 developer have done. Their great effort creates the NS2.
In the above scenario, when you input a parameter, TCL interpreter will transfer it to the C++ code, then C++ code will run with the parameter and return the result. So you have to connect with tcl interferace, C++ code will do the next.
In fact, when you run ns2, it's looks like a tcl interpreter.
边栏推荐
- 正则表达式的扩展
- MySQL 02 初体验
- 飞机大战敌机出场
- Aircraft battle with enemy aircraft
- Commodity comment information and comment information classification
- Wechat payment and payment callback
- MySQL 04 高级查询(二)
- Docker - docker installation, MySQL installation on docker, and project deployment on docker
- 网红RGB镜子灯触摸芯片-DLT8S15B-杰力科创
- MySQL 03 advanced query (I)
猜你喜欢
随机推荐
nacos显示服务注册地址错误
MySQL 01 关系型数据库设计
Baidu map eagle eye track service
Sentinel1.8.4 persistent Nacos configuration
Extension of ES6 value
音乐律动七彩渐变灯芯片--DLT8S04A-杰力科创
express get/post/delete...请求
Hbuilder submission code
瑞吉外卖sql表
JS中的数组与对象
建木持续集成平台v2.5.2发布
商品推荐和分类商品推荐
Code interview of Amazon
Collection of software design suggestions of "high cohesion and low coupling"
Uploading and downloading of files
Idea 2020.1 Community Edition download experience
订单超时取消 及 按类别查询商品
Arrays and objects in JS
Valueerror: found input variables with inconsistent numbers of samples: [80019456, 26673152] [error reporting]
ridis命令笔记









