Open System Services Porting Guide (G06.29+, H06.06+, J06.03+)
Development Tools
Typical C program development tools found on many UNIX workstations are discussed in the
following subsections:
• “C Program Analysis Tools” (page 163)
• “Program Management Tools” (page 163)
• “C Source Code Utilities” (page 164)
• “Object File Utilities” (page 164)
• “Linkable Library Routines” (page 165)
• “Standard and Alternate Library Directories” (page 165)
• “Implementor-Defined Values” (page 166)
C Program Analysis Tools
The following C program analysis tools might be available on your workstation (see also Chapter 3
(page 48)):
• lint is a C program that checks the syntax of your source code and detects inconsistent use,
nonportable code, and suspicious constructs. It flags nonstandard C or C syntax errors in your
code. lint is not used much any more because it has been superseded by more powerful
compilers.
• cscope is a C source code browser that locates specified code elements in C, lex, and
yacc source files. It also builds a symbol cross-reference table and aids in program debugging.
• prof, gprof, and lprof are program execution profilers.
• There are profile routines that tell you which of your routines are most significant to the
performance of your application. You can run a profiler with your application to include these
profile routines.
You should perform your program analysis before porting to the OSS environment. Therefore,
these tools are not provided with the OSS environment.
Program Management Tools
The following program management tools might be available on your UNIX workstation:
• make is one of the most important utilities that comes with UNIX systems. It tracks dependencies
between modules of a program and builds an executable file using rules in the make file.
More information about using make is available in the make(1) online reference page; make
is also available in the OSS environment.
If you perform your compilations on the workstation using make, then you can perform your
compilations in the OSS environment using make; make files should be relatively easy to port
to the OSS environment.
• imake is a publicly available program that uses the dependencies in your source code to
build a make file from specified rules. You might have to edit the make file slightly to suit your
programming needs, but imake does a large part of the building job for you.
More information about using imake is available in the imake(1) online reference page;
imake is not available in the OSS environment.
The UNIX Workstation Development Environment 163