资料介绍
Advanced Linux ProgrammingA
Other Development Tools
D
EVELOPING CORRECT, FAST C OR C++ GNU/LINUX PROGRAMS requires more than just understanding the GNU/Linux operating system and its system calls. In this appendix, we discuss development tools to find runtime errors such as illegal use of dynamically allocated memory and to determine which parts of a program are taking most of the execution time. Analyzing a program’s source code can reveal some of this information; by using these runtime tools and actually executing the program, you can find out much more.
A.1 Static Program Analysis
Some programming errors can be detected using static analysis tools that analyze the program’s source code. If you invoke GCC with -Wall and -pedantic, the compiler issues warnings about risky or possibly erroneous programming cons