%0 Journal Article
%T A Solution to the Polymorphism of Object-Oriented Programs in WCET Analysis
WCET分析中面向对象程序多态性问题的解决方法
%A JI Meng-Luo
%A LI Shu-Hao
%A QIN Jie
%A QI Zhi-Chang
%A
姬孟洛
%A 李书浩
%A 秦杰
%A 齐治昌
%J 计算机科学
%D 2006
%I
%X It is a tendency for real-time systems to be designed with object-oriented modeling language,such as Unified Modeling Language (UML),and implemented with object-oriented languages such as C~ . However, some object-oriented features like polymorphism bring about challenges for Worst-Case Execution Time (WCET) analysis. This paper presents a solution to cope with a kind of widely used dynamic binding by introducing UML design information into WCET analysis. Realizing that the association in UML is a relationship between two or more concrete classes, we emphasize the specification of the multiplicity of the roles of an association, and suppose the ease of establishing the mapping between an association and its representation in source code. Based on the multiplicity of the roles of association, we compute the execution count of a loop structure that traverses all the objects of the sub-classes a super class variable represents in the loop, and determine the number of objects of each concrete class in a super (virtual) class call site. By combining our method with the method of Corti and Gross, we can calculate the WCET of a program written in object-oriented languages with polymorphism characteristics. Empirical study shows that the cases we explore are broadly used in object-oriented programs.
%K Polymorphism
%K Object-oriented program
%K Worst-case execution time analysis
%K Real-time system
%K Software engineering
多态性
%K 面向对象程序
%K WCET分析
%K 实时系统
%K 软件工程
%U http://www.alljournals.cn/get_abstract_url.aspx?pcid=5B3AB970F71A803DEACDC0559115BFCF0A068CD97DD29835&cid=8240383F08CE46C8B05036380D75B607&jid=64A12D73428C8B8DBFB978D04DFEB3C1&aid=B0F19AA8BC6D6432&yid=37904DC365DD7266&vid=27746BCEEE58E9DC&iid=708DD6B15D2464E8&sid=D537C66B6404FE57&eid=627456E7977439A4&journal_id=1002-137X&journal_name=计算机科学&referenced_num=0&reference_num=19