• DocumentCode
    3388417
  • Title

    An experiment to assess the benefits of inter-module type checking

  • Author

    Prechelt, Lutz ; Tichy, Walter F.

  • Author_Institution
    Fakultat fur Inf., Karlsruhe Univ., Germany
  • fYear
    1996
  • fDate
    25-26 Mar 1996
  • Firstpage
    112
  • Lastpage
    119
  • Abstract
    This paper reports on an experiment to assess the error detection capabilities of static, inter-module type checking. Type checking is considered an important mechanism for detecting programming errors, especially interface errors. The experiment uses Kernighan & Ritchie C and ANSI C. The relevant difference is that the ANSI C compiler checks module interfaces (i.e., the parameter lists of calls to external functions), whereas K&R C does not. The experiment employs a counterbalanced design, in which each subject writes two non-trivial programs that interface with a complex library (Motif). Each subject writes one program in K&R C and one in ANSI C. The input to each compiler run is saved and manually analyzed for errors. Results indicate that delivered ANSI C programs contain significantly fewer interface errors than delivered K&R C programs. Furthermore, after subjects have gained some familiarity with the interface they are using, ANSI C programmers remove errors faster and are more productive (measured in both time to completion and functionality implemented)
  • Keywords
    C language; program compilers; program debugging; program testing; program verification; software libraries; ANSI C compiler; Motif; benefits; complex library; experiment; interface errors; intermodule type checking; module interfaces; program debugging; programming error detection; Error analysis; Error correction; Gain measurement; Inspection; Libraries; Productivity; Program processors; Programming profession; Testing; Time measurement;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Software Metrics Symposium, 1996., Proceedings of the 3rd International
  • Conference_Location
    Berlin
  • Print_ISBN
    0-8186-7365-6
  • Type

    conf

  • DOI
    10.1109/METRIC.1996.492448
  • Filename
    492448