A Code Generator with Application-Oriented Size Optimization for Object-Oriented Embedded Control Software
暂无分享,去创建一个
We have developed an automatic code generator which generates C language code from object-oriented specification diagrams. It reduces the target program size 35% smaller than the size of the program which was simply translated into C++ code. We accomplished this effective optimization by removing some mechanisms of object-oriented programming languages which are unused for our target application, embedded real-time software. Object-oriented programming languages provide many useful features such as inheritances, constructors, destructors, virtual tables and instances. But software of small embedded real-time control systems does not need all of these features, because the end products must be on ROM of one-chip controllers and the runtime behavior of the software is fixed. We remove the unused mechanisms of object-orientation by considering the feature of the target application to reduce the size of the programs.
[1] Saumya K. Debray. Resource-bounded partial evaluation , 1997 .
[2] Bruce Powel Douglass,et al. Designing real-time systems with UML, Part , 1998 .
[3] David Grove,et al. Selective specialization for object-oriented languages , 1995, PLDI '95.
[4] James B. Martin,et al. Principles of object-oriented analysis and design , 1993, notThenot James Martin Books.
[5] Crispin Cowan,et al. Declarative specialization of object-oriented programs , 1997, OOPSLA '97.