This guide discusses advanced topics related to the use of the IBM(R)
XL C/C++ Advanced Edition V7.0 for Linux(R) compiler, with a
particular focus on program portability and optimization. The guide
provides both reference information and practical tips for getting the most
out of the compiler's capabilities, through recommended programming
practices and compilation procedures. The guide also contains extensive
cross-references to the relevant sections of the other reference guides in the
XL C/C++ Advanced Edition V7.0 for Linux documentation set.
This guide includes these topics:
- Using 32-bit and 64-bit modes discusses common problems that arise when porting existing
32-bit applications to 64-bit mode, and provides recommendations for avoiding
these problems.
- Aligning data in aggregates discusses the different compiler options available for
controlling the alignment of data in aggregates, such as structures and
classes, on all platforms.
- Handling floating point operations discusses options available for controlling the way
floating-point operations are handled by the compiler.
- Using C++ templates discusses the different options for compiling programs that
include C++ templates.
- Constructing a library discusses how to compile and link static and shared
libraries, and how to specify the initialization order of static objects in
C++ programs.
- Optimizing your applications discusses the various options provided by the compiler for
optimizing your programs, and provides recommendations for use of the
different options.
- Coding your application to improve performance discusses recommended programming practices and coding
techniques for enhancing program performance and compatibility with the
compiler's optimization capabilities.
