IN THIS CHAPTER
With its rich set of languages and development tools, the Mac OS X operating system provides an outstanding environment for programming. C is one of the most popular system programming languages to use in conjunction with OS X, in part because the operating system itself is written mostly in C. Using C, programmers can easily access system services using function libraries and system calls. In addition, a variety of helpful tools can facilitate the development and maintenance of programs.
This chapter explains how to compile and link C programs. It introduces the GNU gdb debugger and tools that provide feedback about memory, disk, and CPU resources. It also covers some of the most useful software development tools: the make utility and CVS (Concurrent Versions System). The make utility helps you keep track of which program modules have been updated and helps to ensure that you use the latest versions of all program modules when you compile a program. CVS is a source code management system that tracks the versions of files involved in a project.
This chapter covers the traditional UNIX command line programming environment, using utilities such as make, gcc, and cvs. Apple also provides the Xcode graphical interactive development environment (IDE), which is partially based on some of the utilities described in this chapter.
Developer Tools package (Xcode Tools)
The Developer Tools package is optional; you must install it from the distribution CD-ROMs or from the package located in /Applications/Installers. Starting with the introduction of Xcode in version 10.3, the Developer Tools package was renamed Xcode Tools, but is still referred to generically as developer tools. Check Apple's Web site (developer.apple.com) periodically for newer versions of this package.