Patent · US Expired

Method and device for program transformation using class hierarchy transformation based upon type constraint analysis

US6230314A · kind A · utility

32Cited by
8References
20Claims
0Family size

Assignee

Inventors

Key dates

Filing dateOct 2, 1997
Grant dateMay 8, 2001
Priority date
Expiry dateOct 2, 2017

Classification

  • Technology area (CPC G)Physics
  • CPC primaryG06F9/4492
  • WIPO fieldComputer technology
  • WIPO sectorElectrical engineering

Abstract

A mechanism is provided that eliminates redundant components from objects of a program. Specifically, the mechanism is capable of detecting situations where a member of a given class is used by some, but not all instances of that class, and the elimination of this member from the instances where it is not needed. This is accomplished by an analysis of the program and its class hierarchy, followed by the construction of a new, specialized class hierarchy and a transformation of the program. These operations preserve the original behavior of the program, and have the effect of "optimizing away" unneeded class members from objects. The invention is also capable of replacing class hierarchies that exhibit virtual inheritance with class hierarchies that only exhibit nonvirtual inheritance, and is applicable across a broad spectrum of inheritance structures. Transformation of virtual into nonvirtual inheritance improves program performance because it reduces the time required to access members that are located in virtual base classes. In addition, it may reduce the space required to represent objects.

Source: USPTO / EPO open patent data. Objective bibliographic and citation counts.