Common coupling and pointer variables, with application to a Linux case study

  • Authors:
  • Stephen R. Schach;Tokunbo O. Adeshiyan;Daniel Balasubramanian;Gabor Madl;Esteban P. Osses;Sameer Singh;Karlkim Suwanmongkol;Minhui Xie;Dror G. Feitelson

  • Affiliations:
  • Department of Electrical Engineering and Computer Science, Vanderbilt University, Nashville, USA 37235;Department of Electrical Engineering and Computer Science, Vanderbilt University, Nashville, USA 37235;Department of Electrical Engineering and Computer Science, Vanderbilt University, Nashville, USA 37235;Department of Electrical Engineering and Computer Science, Vanderbilt University, Nashville, USA 37235;Department of Electrical Engineering and Computer Science, Vanderbilt University, Nashville, USA 37235;Department of Electrical Engineering and Computer Science, Vanderbilt University, Nashville, USA 37235;Department of Electrical Engineering and Computer Science, Vanderbilt University, Nashville, USA 37235;Department of Electrical Engineering and Computer Science, Vanderbilt University, Nashville, USA 37235;Department of Electrical Engineering and Computer Science, Vanderbilt University, Nashville, USA 37235

  • Venue:
  • Software Quality Control
  • Year:
  • 2007

Quantified Score

Hi-index 0.00

Visualization

Abstract

Both common coupling and pointer variables can exert a deleterious effect on the quality of software. The situation is exacerbated when global variables are assigned to pointer variables, that is, when an alias to a global variable is created. When this occurs, the number of global variables increases, and it becomes considerably harder to compute quality metrics correctly. However, unless aliasing is taken into account, variables may incorrectly appear to be unreferenced (neither defined nor used), or to be used without being defined. These ideas are illustrated by means of a case study of common coupling in the Linux kernel.