Chapter 12. Programming Tools


IN THIS CHAPTER

Programming in C

478

Using Shared Libraries

486

make: Keeps a Set of Programs Current

489

Debugging C Programs

496

Threads

506

System Calls

506

CVS: Concurrent Versions System

510


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.




A Practical Guide to UNIX[r] for Mac OS[r] X Users
A Practical Guide to UNIX for Mac OS X Users
ISBN: 0131863339
EAN: 2147483647
Year: 2005
Pages: 234

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net