一种轻量级的Win32应用程序二进制接口兼容方案
    点此下载全文
引用本文:周海洋?覮,黄小大.一种轻量级的Win32应用程序二进制接口兼容方案[J].计算技术与自动化,2019,(1):153-156
摘要点击次数: 634
全文下载次数: 0
作者单位
周海洋?覮,黄小大 (华自科技股份有限公司 硬件研发部湖南 长沙 410205) 
中文摘要:在COM组件技术的基础上,对Win32平台下应用程序的二进制接口跨编译器兼容问题进行了研究。通过利用Win32平台下COM技术规约针对对象内存分布的一致约定,结合C++语言虚函数表的特性,提出一种专用于Win32平台的应用程序二进制接口跨编译器兼容问题解决方法。并由该方法衍生出一系列二进制接口兼容的类,形成一整套解决方案。与传统Win32平台上使用C语言接口或COM组件来达到二进制接口兼容的方式不同,新方案采用精简的类和虚函数表来规范对象内存分布,借助Win32平台下编译器对COM技术的广泛支持,实现了应用程序接口在不同编译器下二进制级别的统一。同时,方案保持了原C++语言的面向对象特性,还具有简单、轻量级的特点。
中文关键词:Win32平台  二进制接口兼容  跨编译器  轻量级
 
A Lightweight Scheme for Binary Interface Compatibility of Win32 Application
Abstract:On the basis of COM component technology,the application binary interface cross-compiler compatibility issue on Win32 platform was studied. By using the COM technology specification on Win32 platform for the uniform agreement of object memory layout and combining the characteristics of virtual function table of the C++ language,a method of the compatibility problem of application binary interface for Win32 platform is proposed. Derived from this method,a variety of binary interface compatible classes form a complete scheme. Unlike traditional way of using C language interface or COM components to achieve binary interface compatibility,the new scheme uses the simplified class and virtual function table to standardize the object memory layout,and achieves a unified compatibility of application interface at the binary level under different compilers with the aid of wide compiler support for COM technology on Win32 platform. At the same time,the scheme keeps the object-oriented features of the original C++ language ,and also possesses the features of simplicity and lightweight.
keywords:Win32 platform  binary interface compatibility  cross-compiler  lightweight
查看全文   查看/发表评论   下载pdf阅读器