A STUDY OF DEAD DATA MEMBERS IN C++ APPLICATIONS

Authors
Citation
Pf. Sweeney et F. Tip, A STUDY OF DEAD DATA MEMBERS IN C++ APPLICATIONS, ACM SIGPLAN NOTICES, 33(5), 1998, pp. 324-332
Citations number
25
Categorie Soggetti
Computer Science Software Graphycs Programming","Computer Science Software Graphycs Programming
Journal title
Volume
33
Issue
5
Year of publication
1998
Pages
324 - 332
Database
ISI
SICI code
Abstract
Object-oriented applications may contain data members that can be remo ved from the application without affecting program behavior. Such ''de ad'' data members may occur due to unused functionality in class libra ries, or due to the programmer losing track of member usage as the app lication changes over time. We present a simple and efficient algorith m for detecting dead data members in CSS applications. This algorithm has been implemented using a prototype version of the IBM VisualAge CS S compiler, and applied to a number of realistic benchmark programs ra nging from 600 to 58,000 lines of code. For the non-trivial benchmarks , we found that up to 27.3% of the data members in the benchmarks are dead (average 12.5%), and that up to 11.6% of the object space of thes e applications may be occupied by dead data members st run-time (avera ge 4.4%).