如何保持基于c++对象的二进制兼容性

Donguk Yu, H. Park
{"title":"如何保持基于c++对象的二进制兼容性","authors":"Donguk Yu, H. Park","doi":"10.5772/INTECHOPEN.77383","DOIUrl":null,"url":null,"abstract":"This chapter proposes the binary compatibility object model for C++ (BiCOMC) to pro- vide the binary compatibility of software components in order to share objects among C++ based executable files such as .exe, .dll, and .so. In addition, the proposed model provides the method overriding and overloading, multiple inheritance, and exception handling. This chapter illustrates how to use the proposed model via a simple example in the Windows and Linux environment. The proposed method is validated by application examples and comparisons with known object models such as C++, COM, and CCC in terms of the call time of a method during execution and the binary compatibility such as reusability due to interface version and the types of compilers. Also this chapter shows that BiCOMC-based components compiled with Microsoft Visual C++ and GCC can call each other and the interface version problems are resolved. Tables 1 – 3 , it can be seen that the BiCOMC provides better binary compatibility in a Windows environment than object models in C++, COM, and CCC, which are compiled in GCC, MSVC, and ICC. The BiCOMC was compared with C++, COM, and CCC in terms of the call times of methods during run time. The results showed that the call time of the BiCOMC was similar to C++/COM. In other words, the application examples and the evaluation results verified that the proposed method was provided for the binary compatibility among different types of compilers. In future we will develop and distribute BiCOMC-based components for various applica tions such as industrial/medical robot applications and factory/home automation application, which can be used regardless of the types of compilers.","PeriodicalId":436110,"journal":{"name":"Computer Methods and Programs in Biomedical Signal and Image Processing","volume":"304 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2018-11-05","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"How to Keep the Binary Compatibility of C++ Based Objects\",\"authors\":\"Donguk Yu, H. Park\",\"doi\":\"10.5772/INTECHOPEN.77383\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"This chapter proposes the binary compatibility object model for C++ (BiCOMC) to pro- vide the binary compatibility of software components in order to share objects among C++ based executable files such as .exe, .dll, and .so. In addition, the proposed model provides the method overriding and overloading, multiple inheritance, and exception handling. This chapter illustrates how to use the proposed model via a simple example in the Windows and Linux environment. The proposed method is validated by application examples and comparisons with known object models such as C++, COM, and CCC in terms of the call time of a method during execution and the binary compatibility such as reusability due to interface version and the types of compilers. Also this chapter shows that BiCOMC-based components compiled with Microsoft Visual C++ and GCC can call each other and the interface version problems are resolved. Tables 1 – 3 , it can be seen that the BiCOMC provides better binary compatibility in a Windows environment than object models in C++, COM, and CCC, which are compiled in GCC, MSVC, and ICC. The BiCOMC was compared with C++, COM, and CCC in terms of the call times of methods during run time. The results showed that the call time of the BiCOMC was similar to C++/COM. In other words, the application examples and the evaluation results verified that the proposed method was provided for the binary compatibility among different types of compilers. In future we will develop and distribute BiCOMC-based components for various applica tions such as industrial/medical robot applications and factory/home automation application, which can be used regardless of the types of compilers.\",\"PeriodicalId\":436110,\"journal\":{\"name\":\"Computer Methods and Programs in Biomedical Signal and Image Processing\",\"volume\":\"304 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2018-11-05\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Computer Methods and Programs in Biomedical Signal and Image Processing\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.5772/INTECHOPEN.77383\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Computer Methods and Programs in Biomedical Signal and Image Processing","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.5772/INTECHOPEN.77383","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

摘要

本章提出了c++二进制兼容对象模型(BiCOMC)来提供软件组件的二进制兼容性,以便在基于c++的可执行文件(如。exe、。dll和。so)之间共享对象。此外,建议的模型提供了方法覆盖和重载、多重继承和异常处理。本章通过一个简单的例子说明如何在Windows和Linux环境中使用所提出的模型。通过应用实例验证了该方法的有效性,并与c++、COM和CCC等已知对象模型进行了比较,比较了方法在执行过程中的调用时间和二进制兼容性(如接口版本和编译器类型的可重用性)。本章还展示了使用microsoftvisualc++和GCC编译的基于biccomm的组件可以相互调用,并解决了接口版本问题。从表1 - 3可以看出,BiCOMC在Windows环境中提供了比c++、COM和CCC中的对象模型更好的二进制兼容性,这些对象模型是在GCC、MSVC和ICC中编译的。比较了BiCOMC与c++、COM和CCC在运行时的方法调用次数。结果表明,BiCOMC的调用时间与c++ /COM相似。也就是说,应用实例和评价结果验证了所提出的方法可用于不同类型编译器之间的二进制兼容性。在未来,我们将开发和分发基于biccomm的组件,用于各种应用,如工业/医疗机器人应用和工厂/家庭自动化应用,无论编译器类型如何,都可以使用这些组件。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
How to Keep the Binary Compatibility of C++ Based Objects
This chapter proposes the binary compatibility object model for C++ (BiCOMC) to pro- vide the binary compatibility of software components in order to share objects among C++ based executable files such as .exe, .dll, and .so. In addition, the proposed model provides the method overriding and overloading, multiple inheritance, and exception handling. This chapter illustrates how to use the proposed model via a simple example in the Windows and Linux environment. The proposed method is validated by application examples and comparisons with known object models such as C++, COM, and CCC in terms of the call time of a method during execution and the binary compatibility such as reusability due to interface version and the types of compilers. Also this chapter shows that BiCOMC-based components compiled with Microsoft Visual C++ and GCC can call each other and the interface version problems are resolved. Tables 1 – 3 , it can be seen that the BiCOMC provides better binary compatibility in a Windows environment than object models in C++, COM, and CCC, which are compiled in GCC, MSVC, and ICC. The BiCOMC was compared with C++, COM, and CCC in terms of the call times of methods during run time. The results showed that the call time of the BiCOMC was similar to C++/COM. In other words, the application examples and the evaluation results verified that the proposed method was provided for the binary compatibility among different types of compilers. In future we will develop and distribute BiCOMC-based components for various applica tions such as industrial/medical robot applications and factory/home automation application, which can be used regardless of the types of compilers.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信