C User's Guide
Contents
Preface
1. Introduction to the C Compiler
- Operating Environments
- Standards Conformance
- Organization of the Compiler
- C-Related Programming Tools
2. cc Compiler Options
- Option Syntax
- The cc Options
- -#
- -###
- -Aname[(tokens)]
- -B[static|dynamic]
- -C
- -c
- -Dname[=tokens]
- -d[y|n]
- -dalign
- -E
- -erroff=t
- -errtags=a
- -fast
- -fd
- -flags
- -fnonstd
- -fns
- -fprecision=<p>
- -fround=r
- -fsimple[=n]
- -fsingle
- -fstore
- -ftrap=t
- -G
- -g
- -H
- -h name
- -Idir
- -i
- -keeptmp
- -KPIC
- -Kpic
- -Ldir
- -lname
- -mc
- -misalign
- -misalign2
- -mr
- -mr,string
- -mt
- -native
- -nofstore
- -noqueue
- -O
- -o filename
- -P
- -p
- -Q[y|n]
- -qp
- -Rdir[:dir]
- -S
- -s
- -Uname
- -V
- -v
- -Wc,arg
- -w
- -X[a|c|s|t]
- -x386
- -x486
- -xa
- -xarch=a
- -xautopar
- -xcache=c
- -xCC
- -xcg[89|92]
- -xchip=c
- -xcrossfile
- -xdepend
- -xe
- -xexplicitpar
- -xF
- -xhelp=f
- -xildoff
- -xildon
- -xinline=[f1,...,fn]
- -xlibmieee
- -xlibmil
- -xlic_lib=l
- -Xlic_lib=sunperf
- -xlicinfo
- -xloopinfo
- -xM
- -xM1
- -xMerge
- -xnolib
- -xnolibmil
- -xO[1|2|3|4|5]
- -xP
- -xparallel
- -xpentium
- -xpg
- -xprofile=p
- -xreduction
- -xregs=r
- -xrestrict=f
- -xs
- -xsafe=mem
- -xsb
- -xsbfast
- -xsfpconst
- -xspace
- -xstrconst
- -xtarget=t
- -xtemp=dir
- -xtime
- -xtransition
- -xunroll=n
- -xvpara
- -Yc, dir
- -YA, dir
- -YI, dir
- -YP, dir
- -YS, dir
- -Zll
- -Zlp
- -Ztha
- Options Passed to the Linker
- Localization of Error Messages
3. Sun ANSI C Compiler-Specific Information
- Environment Variables
- TMPDIR
- SUNPRO_SB_INIT_FILE_NAME
- PARALLEL
- Global Behavior: Value versus unsigned Preserving
- Keywords
- asm Keyword
- _Restrict Keyword
- long long Data Type
- Printing long long Data Types
- Usual Arithmetic Conversions
- Constants
- Integral Constants
- Character Constants
- Include Files
- Nonstandard Floating Point
- Preprocessing Directives
- Assertions
- Pragmas
- Predefined Names
- MP C (SPARC)
- Overview
- Explicit Parallelization and Pragmas
- Compiler Options
4. cscope:Interactively
Examining a C Program
- The cscope Process
- Basic Use
- Step 1: Set Up the Environment
- Step 2: Invoke the cscope Program
- Step 3: Locate the Code
- Step 4: Edit the Code
- Command-Line Options
- View Paths
- cscope and Editor Call Stacks
- Examples
- Command-Line Syntax for Editors
- Unknown Terminal Type Error
- SourceBrowser
5. lint Source Code Checker
- Overview of the lint Program
- Basic and Enhanced lint Functionality
- Using lint
- The lint Options
- -#
- -###
- -a
- -b
- -C filename
- -c
- -dirout=dir
- -err=warn
- -errchk=l
- -errfmt=f
- -errhdr=h
- -erroff=t
- -errtags=a
- -F
- -fd
- -flagsrc=file
- -h
- -Idir
- -k
- -Ldir
- -lx
- -m
- -Ncheck=c
- -Nlevel=n
- -n
- -ox
- -p
- -Rfile
- -s
- -u
- -V
- -v
- -Wfile
- -x
- -XCC=a
- -Xexplicitpar=a
- -Xkeeptmp=a
- -Xtemp=dir
- -Xtime=a
- -Xtransition=a
- -y
- lint Messages
- Options to Suppress Messages
- lint Message Formats
- lint Directives
- Predefined Values
- Directives
- lint Reference and Examples
- Checks Performed by lint
- lint Libraries
- lint Filters
A. ANSI C Data Representations
- Storage Allocation
- Data Representations
- Integer Representations
- Floating-Point Representations
- Exceptional Values
- Hexadecimal Representation of Selected Numbers
- Pointer Representation
- Array Storage
- Arithmetic Operations on Exceptional Values
- Argument-Passing Mechanism
B. Implementation-Defined Behavior
- Translation
- Environment
- Identifiers
- Characters
- Integers
- Floating-Point
- Arrays and Pointers
- Registers
- Structures, Unions, Enumerations, and Bit-Fields
- Qualifiers
- Declarators
- Statements
- Preprocessing Directives
- Library Functions
- Signals
- Streams and Files
- errno
- Memory
- abort Function
- exit Function
- getenv Function
- system Function
- strerror Function
- Locale Behavior
C. -Xs Differences for Sun C
and ANSI C
D. Performance Tuning (SPARC)
- Limits
- libfast.a Library
Index