Author Login Editor-in-Chief Peer Review Editor Work Office Work

Computer Engineering

Previous Articles     Next Articles

Research on Windows Software Binary Migration Based on Loongson

SU Yu,ZHANG Tao,WANG Jinshuang,ZHAO Min   

  1. (College of Command Information Systems,PLA University of Science and Technology,Nanjing 210007,China)
  • Received:2015-10-12 Online:2016-10-15 Published:2016-10-15

基于龙芯的Windows软件二进制移植研究

苏煜,张涛,王金双,赵敏   

  1. (解放军理工大学 指挥信息系统学院,南京 210007)
  • 作者简介:苏煜(1991—),男,硕士,主研方向为系统软件安全;张涛,教授、博士;王金双,副教授、博士;赵敏,讲师、博士。
  • 基金资助:
    国家部委基金资助项目。

Abstract: Since Loongson adopts Microprocessor without Interlocked Piped Stages(MIPS) instruction set and main supports the Linux operating system,application software on Loongson is still relatively scarce.Many traditional Windows software cannot run directly on the platform.To solve this problem,this paper proposes a method to simulate Windows system call by utilizing Wine emulator and uses QEMU user mode realize the dynamic translation from x86 instructions to MIPS instructions.It achieves software binary migration from Intel+Windows architecture to Loongson+Linux architecture.Experimental results show that this scheme has higher efficiency compared with Bochs+Wine and QEMU full system schemes.The rate of CPU calculation with this method is 8.04 times of Bochs+Wine scheme and 1.44 times of QEMU full system scheme.I/O calculation rate with this scheme is 2.44 times of Bochs+Wine scheme and 7.38 times of QEMU full system scheme.

Key words: QEMU virtual machine, Wine simulation environment, Loongson, instruction set translation, binary migration

摘要: 由于龙芯采用无内部互锁流水级的微处理器(MIPS)指令集且主要支持Linux操作系统,但在该平台上的应用软件相对匮乏,且很多传统Windows软件无法在该平台上直接运行。针对该问题,利用Wine仿真Windows系统调用,结合QEMU用户模式实现x86指令向MIPS指令动态翻译的方法,将运行在Intel+Windows上的应用软件向龙芯+Linux平台二进制移植。实验结果表明,相比于Bochs+Wine方案和QEMU全系统仿真方案,该方法虚拟CPU运算速率为Bochs+Wine方案的8.04倍和QEMU全系统仿真方案的1.44倍,I/O读写速率为Bochs+Wine方案的2.44倍和QEMU全系统仿真方案的7.38倍,运行效率明显提高。

关键词: QEMU虚拟机, Wine仿真环境, 龙芯, 指令集翻译, 二进制移植

CLC Number: