HomeContentsPreviousNextIndex

C++ User's Guide Sun Microsystems

Contents

 Preface

1.  The C++ Compiler

1.1 Standards Conformance
1.2 Operating Environments
1.3 READMEs
1.4 Man Pages
1.5 Licensing
1.6 New Features of the C++ Compiler
1.7 C++ Utilities
1.8 Native-Language Support

2.  Using the C++ Compiler

2.1 Getting Started
2.2 Invoking the Compiler
2.2.1 Command Syntax
2.2.2 File Name Conventions
2.2.3 Using Multiple Source Files
2.2.4 Compiling With Different Compiler Versions
2.3 Compiling and Linking
2.3.1 Compile-Link Sequence
2.3.2 Separate Compiling and Linking
2.3.3 Consistent Compiling and Linking
2.3.4 Compiling for SPARC V9
2.3.5 Diagnosing the Compiler
2.3.6 Understanding the Compiler Organization
2.4 Memory Requirements
2.4.1 Swap Space Size
2.4.2 Increasing Swap Space
2.4.3 Control of Virtual Memory
2.4.4 Memory Requirements
2.5 Simplifying Commands
2.5.1 Using Aliases Within the C Shell
2.5.2 Using CCFLAGS to Specify Compile Options
2.5.3 Using make

3.  C++ Compiler Options

3.1 Options Summarized by Function
3.1.1 Code Generation Options
3.1.2 Debugging Options
3.1.3 Floating-Point Options
3.1.4 Language Options
3.1.5 Library Options
3.1.6 Licensing Options
3.1.7 Obsolete Options
3.1.8 Output Options
3.1.9 Performance Options
3.1.10 Preprocessor Options
3.1.11 Profiling Options
3.1.12 Reference Options
3.1.13 Source Options
3.1.14 Template Options
3.1.15 Thread Options
3.1.16 How Option Information Is Organized
3.2 Option Reference
3.2.1 -386
3.2.2 -486
3.2.3 -a
3.2.4 -Bbinding
3.2.5 -c
3.2.6 -cg[89|92]
3.2.7 -compat[=(4|5)]
3.2.8 +d
3.2.9 -Dname[=def]
3.2.10 -d(y|n)
3.2.11 -dalign
3.2.12 -dryrun
3.2.13 -E
3.2.14 +e(0|1)
3.2.15 -fast
3.2.16 -features=a[,...a]
3.2.17 -flags
3.2.18 -fnonstd
3.2.19 -fns[=(yes|no)]
3.2.20 -fprecision=p
3.2.21 -fround=r
3.2.22 -fsimple[=n]
3.2.23 -fstore
3.2.24 -ftrap=t[,...t]
3.2.25 -G
3.2.26 -g
3.2.27 -g0
3.2.28 -H
3.2.29 -help
3.2.30 -hname
3.2.31 -i
3.2.32 -Ipathname
3.2.33 -instances=a
3.2.34 -keeptmp
3.2.35 -KPIC
3.2.36 -Kpic
3.2.37 -Ldir
3.2.38 -llib
3.2.39 -libmieee
3.2.40 -libmil
3.2.41 -library=l[,...l]
3.2.42 -migration
3.2.43 -misalign
3.2.44 -mt
3.2.45 -native
3.2.46 -noex
3.2.47 -nofstore
3.2.48 -nolib
3.2.49 -nolibmil
3.2.50 -noqueue
3.2.51 -norunpath
3.2.52 -O
3.2.53 -Olevel
3.2.54 -o filename
3.2.55 +p
3.2.56 -P
3.2.57 -p
3.2.58 -pentium
3.2.59 -pg
3.2.60 -PIC
3.2.61 -pic
3.2.62 -pta
3.2.63 -ptipath
3.2.64 -pto
3.2.65 -ptr
3.2.66 -ptv
3.2.67 -Qoption phase option[,...option]
3.2.68 -qoption phase option
3.2.69 -qp
3.2.70 -Qproduce sourcetype
3.2.71 -qproduce sourcetype
3.2.72 -Rpathname[:...pathname]
3.2.73 -readme
3.2.74 -S
3.2.75 -s
3.2.76 -sb
3.2.77 -sbfast
3.2.78 -staticlib=l[,...l]
3.2.79 -temp=dir
3.2.80 -template=w[,...w]
3.2.81 -time
3.2.82 -Uname
3.2.83 -unroll=n
3.2.84 -V
3.2.85 -v
3.2.86 -vdelx
3.2.87 -verbose=v[,...v]
3.2.88 +w
3.2.89 +w2
3.2.90 -w
3.2.91 -xa
3.2.92 -xar
3.2.93 -xarch=isa
3.2.94 -xcache=c
3.2.95 -xcg89
3.2.96 -xcg92
3.2.97 -xchip=c
3.2.98 -xcode=a
3.2.99 -xcrossfile[=n]
3.2.100 -xF
3.2.101 -xhelp=flags
3.2.102 -xhelp=readme
3.2.103 -xildoff
3.2.104 -xildon
3.2.105 -xlibmieee
3.2.106 -xlibmil
3.2.107 -xlibmopt
3.2.108 -xlic_lib=sunperf
3.2.109 -xlicinfo
3.2.110 -Xm
3.2.111 -xM
3.2.112 -xM1
3.2.113 -xMerge
3.2.114 -xnolib
3.2.115 -xnolibmil
3.2.116 -xnolibmopt
3.2.117 -xOlevel
3.2.118 -xpg
3.2.119 -xprefetch[=a[,a]]
3.2.120 -xprofile=p
3.2.121 -xregs=r[,...r]
3.2.122 -xs
3.2.123 -xsafe=mem
3.2.124 -xsb
3.2.125 -xsbfast
3.2.126 -xspace
3.2.127 -xtarget=t
3.2.128 -xtime
3.2.129 -xunroll=n
3.2.130 -xvector[=(yes|no)]
3.2.131 -xwe
3.2.132 -z arg
3.2.133 -ztext

4.  Compiling Templates

4.1 Verbose Compilation
4.2 Template Commands
4.3 Template Instance Placement and Linkage
4.3.1 External Instances
4.3.2 Static Instances
4.3.3 Global Instances
4.3.4 Explicit Instances
4.3.5 Semi-Explicit Instances
4.4 The Template Repository
4.4.1 Repository Structure
4.4.2 Writing to the Template Repository
4.4.3 Reading From Multiple Template Repositories
4.4.4 Sharing Template Repositories
4.5 Template Definition Searching
4.5.1 Source File Location Conventions
4.5.2 Definitions Search Path
4.6 Template Instance Automatic Consistency
4.7 Compile-Time Instantiation
4.8 Template Options File
4.8.1 Comments
4.8.2 Includes
4.8.3 Source File Extensions
4.8.4 Definition Source Locations
4.8.5 Template Specialization Entries

5.  Using Libraries

5.1 The C Libraries
5.2 Libraries Provided With the C++ Compiler
5.2.1 C++ Library Descriptions
5.2.2 Default C++ Libraries
5.3 Related Library Options
5.4 Using Class Libraries
5.4.1 The iostream Library
5.4.2 The complex Library
5.4.3 Linking C++ Libraries
5.5 Statically Linking Standard Libraries
5.6 Using Shared Libraries
5.7 Replacing the C++ Standard Library
5.7.1 What Can be Replaced
5.7.2 Installing the Replacement Library
5.7.3 Using the Replacement Library
5.7.4 Standard Header Implementation

6.  Building Libraries

6.1 Understanding Libraries
6.2 Building Static (Archive) Libraries
6.3 Building Dynamic (Shared) Libraries
6.4 Building Shared Libraries That Contain Exceptions
6.5 Building Libraries for Private Use
6.6 Building Libraries for Public Use
6.7 Building a Library That Has a C API
6.8 Using dlopen to Access a C++ Library From a C Program
6.9 Building Multithreaded Libraries

 Glossary

 Index


Sun Microsystems, Inc.
Copyright information. All rights reserved.
Feedback
Library   |   Contents   |   Previous   |   Next   |   Index