检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:廖义奎[1] 李智[2] 李为民[1] 韦卫星[1] 韦方海[1]
机构地区:[1]广西民族大学物理与电子工程学院,广西南宁530006 [2]桂林电子科技大学电子工程学院,广西桂林541004
出 处:《计算机工程与设计》2012年第2期830-836,共7页Computer Engineering and Design
基 金:广西教育厅科研基金项目(200322);广西民族大学重大基金项目(0409013)
摘 要:为了增强嵌入式组态软件的功能,引入一种类似于C语言的脚本。设计一个编译器把该脚本编译成中间代码,采用中间代码的优点是可提高程序运行的速度,也减小了脚本解释程序的设计难度。提出一种仿微处理器结构的脚本虚拟机设计方案,在运行时对中间代码进行解释。虚拟机主要由程序存储器、指令译码器、运算器、程序计数器、控制器以及动态容器组成,其中动态容器的设计是关键,它具有可动态分配内存、自动释放内存等优点,适合于嵌入式操作系统下运行。实验与测试结果表明,该脚本解释虚拟机可满足嵌入式组态软件设计的要求。In order to enhance the function of the embedded configuration software,a C-like script is introduced.A compiler is designed to compile the script into Intermediate code,using intermediate code the running speed is improved,and the design difficulty of the script interpreter is reduced.A design of imitation microprocessor architecture is proposed for script virtual machine.Then the intermediate code is explained at run.Virtual machine is mainly composed of the program memory,instruction decoder,arithmetic unit,program counter,controller,and dynamic containers.Among them,the dynamic design of the container is the most critical,which has dynamically allocate memory,automatically release memory,etc.and is suitable for running in the embedded operating system.By experiments and tests show that,the script interpreter virtual machine can satisfy the design requirements for the embedded configuration software.
关 键 词:嵌入式组态软件 脚本解释 虚拟机 中间代码 仿微处理器结构
分 类 号:TP273[自动化与计算机技术—检测技术与自动化装置]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:3.148.108.240