针对物联网嵌入式底层设备的设计要求,提出了可裁剪式虚拟机可移植层模型及设计方法,阐述了可移植层中的网络、线程、内存等模块的实现方式及该虚拟机的实例访问。通过可移植层设计,该虚拟机可以在不同硬件平台及操作系统上移植。另外,该虚拟机可以实现动态配置、控制、执行等功能,且具有裁剪性。测试表明,该虚拟机的CPU占有率小,内存损耗低,组件重用率高,裁剪性好,并成功运用于工业现场。
In response to the design requirements of embedded devices for Intemet,this paper proposes a model of portability layer for cutable virtual machine,which elaborates how to access the network,thread,memory of portable layer and make a demonstration of accessing the virtual machine.With the design of portable layer, the virtual machine can be portable on different hardware platforms.Besides, the virtual machine can invovle different functions including dynamic configuration, controlling and execution.Moreover, it is cutable and esay to shape.The tests show that the virtual mchine has low CPU, low memory,high rate of component reuse, good cutability and is sucessfully applied in industrial field.