期刊文献+

适用于C语言的对象模型的研究与实现 被引量:1

Research and implementation of object models for C language
在线阅读 下载PDF
导出
摘要 为了解决在低端嵌入式设备中用C语言编写的代码难以维护以及重用率低等问题,提出了一种新的对象模型。将面向对象的思想与C语言开发相结合,利用现代C编译器的宏等特性以及元编程技巧,对C语言本身进行扩展,模拟了面向对象思想中单根继承,多态等特性,并在风格上和C++保持一致。在提升了其代码的可维护和可重用性的同时,简化了使用支持面向对象特性编程语言编写的代码向C语言移植的过程。 To solve the problem of maintainability and reusability of the codes written with C programming language for some low-end embedded devices, a new object model is presented. With the help of the macro feature of modem C compilers and the meta-programming skills, the single inheritance, polymorphism and other object-oriented features can be simulated by standard C programming language and keep the same coding-style of C++, which makes the maintainability, reusability and portability of C codes improved.
出处 《计算机工程与设计》 CSCD 北大核心 2013年第4期1510-1516,共7页 Computer Engineering and Design
关键词 元编程 面向对象 对象模型 嵌入式 C C++ meta programming OOP object model embedded software C/C++
  • 相关文献

参考文献11

  • 1Bjarne Stroustrup. Evolving a language in and for the real world: C++ 1991-2006 [C] //HOPL III, Proceedings of the Third ACM SIGPLAN Conference on History of Programming Languages, 2007: 3-5.
  • 2Bjarne Stroustrup.C++语言的设计和演化[M].裘宗燕,译.机械工业出版社,2002:3-37.
  • 3ANSI C89 Standard, ANSI X3. 159-1989 [S].
  • 4ISO C99 Standard, ISO/IEC 9899:1990 [S].
  • 5孟繁超.OOC-GCC[CP/OL].http://code.gcogle.com/p/ooc-gcc/,2012.
  • 6Stanley B Lippman. 深度探索C++对象模型[M].侯捷,译.电子工业出版社,2012:1-13.
  • 7Andrew Krause. Foundations of GTK+ development [M]. Apress , 2007: 406-456.
  • 8宋国伟.GTK+2.0编程范例[M].清华大学出版社,2002:174-178.
  • 9林信良关于解释器模式的笔记[J/OL].http://caterpillar.onlyfun.net/Gossip/DesignPattern/InterpreterPattern. htm, 2010.
  • 10Erich Gamma, Richard Helm, Ralph Johnson, et al. Design patterns: Elements of reusable object-oriented software [M]. Addison-Wesley Profesaional, 1995:274-288.

同被引文献3

引证文献1

二级引证文献3

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部