Open System Services Porting Guide (G06.24+, H06.03+)

Table Of Contents
Porting From Specific UNIX Systems
Open System Services Porting Guide520573-006
9-2
Editors
Editors
There are two common editors available on all UNIX workstations:
The vi editor, which is the de facto standard, full-screen editor for UNIX systems.
More information about using vi is available in the vi(1) online reference page;
vi is also available in the OSS environment.
The ed editor, which is the original line editor that comes with UNIX systems. More
information about using ed is available in the ed(1) online reference page; ed is
also available in the OSS environment.
Often, there is also an emacs editor (a public domain editor), which is a popular editor
with programmers.
Any program development or maintenance shell scripts that use either the vi or ed
editor should be portable to the OSS environment.
Development Tools
Typical C program development tools found on many UNIX workstations are discussed
in the following subsections:
C Program Analysis Tools on page 9-2
Program Management Tools on page 9-3
C Source Code Utilities on page 9-3
Object File Utilities on page 9-4
Linkable Library Routines on page 9-5
Standard and Alternate Library Directories on page 9-6
Implementor-Defined Values on page 9-6
C Program Analysis Tools
The following C program analysis tools might be available on your workstation (see
also Section 3, Useful Porting Tools):
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.