Advertisement

Program Analysis and Debugging

  • M. R. M. Dunsmuir
  • G. J. Davies
Chapter
Part of the Macmillan Computer Science Series book series (COMPSS)

Abstract

No one can write perfect programs first time and, on a system such as UNIX, the programmer need not find the faults and inefficiencies unaided. UNIX provides a large number of tools to aid the programmer. In this chapter we shall consider two of the most important tools: lint and adb plus the powerful technique, known as profiling. These are aids are for use once the program has been written and compiled without error and are designed to help the programmer get programs working, make them reliable, efficient and portable. Lint will find non-portable or unreliable code which is not syntactically incorrect. Adb is a debugging tool that can be used to find out why a program crashed, or trace a program&;#x2019;s execution. Profiling is a facility which shows the areas of a program that consume most of the execution time.

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Further Reading

  1. S. C Johnson (1978), Lint, a C Program Checker, Unix Programmers Manual, seventh edition, volume 2a.Google Scholar
  2. J. F. Maranzano & S. R. Bourne (1978), A Tutorial Introduction to ADB, Unix Programmers Manual, seventh edition, vol 2a.Google Scholar

Copyright information

© M. R. M. Dunsmuir and G. J. Davies 1985

Authors and Affiliations

  • M. R. M. Dunsmuir
  • G. J. Davies

There are no affiliations available

Personalised recommendations