Download Compilation Systems Volume 2 (Concepts)

Transcript
16
Chapter 16Run-Time Libraries
16
16
16
Introduction
16
PowerUX provides several system libraries which are available to software developers.
This chapter introduces three of these libraries. A brief synopsis of each function in the
libraries is presented. More detailed information can be found in the manual pages for the
functions.
System Libraries
16
The following system libraries are available:
• C
• Math
• Alternate math
• ELF
• DWARF
• General-purpose
C Library
16
This is the basic library for C language programs. It contains functions and declarations
used for file access, string testing and manipulation, character testing and manipulation,
memory allocation, and other capabilities.
The following man page sections pertain to the library:
2
System Calls
3C Standard C Library
3S Standard I/O Library
The static C library is /usr/ccs/lib/libc.a. It is used when link editing programs
which do not perform dynamic linking. Programs which do perform dynamic linking are
link edited with /usr/ccs/lib/libc.so. This library contains a shared object,
/usr/lib/libc.so.1, which contains the dynamic linker and other position independent functions.
16-1