Compile programs from source files written in the C programming language, including using options to modify the nature of the compiled program. Use the make program to keep track of the interdependencies between the various parts of programming projects and to perform the steps necessary to create the final program. Use the symbolic debugger, sdb, to debug programs being developed. Use the lint program to search C source files for possible errors or problems with portability. Use the SCCS collection of commands to maintain the different versions of text files throughout their development
Unit 1: Compiling and Linking Programs with cc
- Compiling and Linking Programs
- Compiling Single C Programs
- The Compilation Steps
- Compiling Multi-File Programs
- Optimizing a Program
- More Options
Unit 2: Using make to Maintain Programs
- A Review of Some Commands
- The Makefile
- Running Make
- Naming the makefile
- Targets, Dependents, and Action Lines
- Using Macros in Makefiles
- Default Rules
Unit 3: Using sdb to Debug Programs
- About sdb
- Compiling Programs to Be Debugged
- Examining Data
- Executing Programs from within sdb
Unit 4: Using lint
- The lint Command
- Type-Checking
- Variable & Function Usage
- Other Problems
- Lint Options
- Special Commands
Unit 5: Using SCCS to Maintain and Track Programs
- SCCS Basics
- Getting Started
- Commands
- Excluding Deltas
- Using SCCS on a Project