文章摘要
谢本壹,张福新.基于用户级兼容技术的高效打印机驱动迁移方法[J].高技术通讯(中文),2025,35(2):124~133
基于用户级兼容技术的高效打印机驱动迁移方法
Efficient printer driver migration based on user-level compatibility technology
  
DOI:10. 3772 / j. issn. 1002-0470. 2025. 02. 002
中文关键词: 打印机驱动;二进制翻译;操作系统兼容
英文关键词: printer driver, binary translation, operating system compatibility
基金项目:
作者单位
谢本壹 (中国科学院计算技术研究所处理器芯片全国重点实验室北京 100190) (中国科学院大学北京 100049) 
张福新  
摘要点击次数: 15
全文下载次数: 10
中文摘要:
      打印机驱动匮乏长期困扰着全球Linux桌面用户。在办公环境中存在大量老旧打印机,这些打印机通常只支持X86 Windows的打印机驱动。然而,国产计算机平台普遍使用Linux操作系统,且存在多种非X86指令集。在信息技术应用创新的背景下,迫切需要解决在国产计算机平台上复用这些老旧打印机的问题。现有方法采用系统级二进制翻译运行Windows操作系统进行打印,存在效率低下且需额外授权的不足。为此,本文提出了一种基于用户级兼容技术的打印机驱动迁移方法,高效地将X86 Windows打印机驱动迁移至国产计算机平台。该方法由操作系统兼容层和用户级二进制翻译两部分组成。操作系统兼容层负责将打印机驱动相关的系统库调用转换成宿主操作系统的调用,用户级二进制翻译负责将X86指令翻译成宿主中央处理器(central processing unit,CPU)的指令。由于无需运行Windows操作系统,本文提出的迁移方法相较于系统级二进制翻译的方法更为高效且无额外授权成本。实验结果表明,采用本方法打印相同内容比系统级二进制翻译方法快10倍左右。该方法已成功应用于搭载了龙芯CPU的国产计算机平台,其可行性和稳定性已得到市场的检验。
英文摘要:
      The lack of printer drivers has been a longstanding issue for global Linux desktop users. In office environments, numerous outdated printers are in use, typically supporting only X86 Windows printer drivers. However, domestically manufactured computer platforms commonly use Linux and various non-X86 instruction set architecture. Against the backdrop of information technology innovation, there is an urgent need to efficiently migrate these outdated devices to domestically manufactured computer platforms. Existing methods involve running the Windows through system-level binary translation for printing, resulting in low efficiency and high license costs. To address these issues, this paper proposes a printer driver migration method based on user-level compatibility technologies, aiming to efficiently migrate X86 Windows printer drivers to domestically manufactured computer platforms. This method consists of two parts: the operating system (OS) compatibility layer and user-level binary translator. The OS compatibility layer is responsible for converting system library call related to printer drivers into calls compatible with the host OS. In addition, user-level binary translator is responsible for translating X86 instructions into instructions of the host central processing unit (CPU). Since it does not require running Windows, the proposed migration method is more efficient and incurs no additional license costs compared to the system-level binary translation method. Experimental results indicate that using this method to print the same content is approximately 10 times faster than the system-level binary translation method. Furthermore, this method has been successfully applied to domestically manufactured computer platforms equipped with Loongson CPUs, demonstrating its feasibility and stability in the market.
查看全文   查看/发表评论  下载PDF阅读器
关闭

分享按钮