Describes programming techniques and practices to help you increase the portability, efficiency and robustness of your C and C++ source code.
4.1 The compiler as an optimizing compiler.
4.2 Compiler optimization
for code size versus speed.
4.3 Compiler optimization levels and the debug view.
4.4 Selecting the target processor at compile time.
4.5 Optimization of loop termination in C code.
4.6 Loop unrolling in C code.
4.7 Compiler optimization and the volatile keyword.
4.8 Code metrics.
4.9 Code metrics for measurement of code size and data size.
4.10 Stack use in C and C++.
4.11 Benefits of reducing debug information in objects and libraries.
4.12 Methods of reducing debug information in objects and libraries.
4.13 Guarding against multiple inclusion of header files.
4.14 Methods of minimizing function parameter passing overhead.
4.15 Returning structures from functions through registers.
4.16 Functions that return the same result when called with the same arguments.
4.17 Comparison of pure and impure functions.
4.18 Recommendation of postfix syntax when qualifying functions with ARM function
4.19 Inline functions.
4.20 Compiler decisions on function inlining.
4.21 Automatic function inlining and static functions.
4.22 Inline functions and removal of unused out-of-line functions at link time.
4.23 Automatic function inlining and multifile compilation.
4.24 Restriction on overriding compiler
decisions about function inlining.
4.25 Compiler modes
and inline functions.
4.26 Inline functions in C++ and C90 mode.
4.27 Inline functions
in C99 mode.
4.28 Inline functions and debugging.
4.29 Types of data alignment.
4.30 Advantages of natural data alignment.
4.31 Compiler storage of data objects by natural byte alignment.
4.32 Relevance of natural data alignment
at compile time.
4.33 Unaligned data access in C and C++ code.
4.34 The __packed qualifier and unaligned data access in C and C++ code.
4.35 Unaligned fields in structures.
penalty associated with marking whole structures as packed.
4.37 Unaligned pointers in C and C++ code.
4.38 Unaligned Load Register (LDR) instructions generated by the compiler.
4.39 Comparisons of an unpacked struct, a __packed struct, and a struct with
individually __packed fields, and of a __packed struct and a #pragma packed
4.40 Compiler support for floating-point arithmetic.
4.41 Default selection
of hardware or software floating-point support.
4.42 Example of hardware and software support differences for floating-point
4.43 Vector Floating-Point (VFP) architectures.
4.44 Limitations on hardware handling of floating-point arithmetic.
4.45 Implementation of Vector Floating-Point (VFP) support code.
4.46 Compiler and library support for half-precision floating-point numbers.
floating-point number format.
4.48 Compiler support for floating-point computations and linkage.
4.49 Types of floating-point linkage.
4.50 Compiler options for floating-point linkage and computations.
4.51 Floating-point linkage and computational requirements of compiler options.
4.52 Processors and their implicit Floating-Point Units (FPUs).
4.53 Integer division-by-zero
errors in C code.
4.54 About trapping integer division-by-zero errors with __aeabi_idiv0().
4.55 About trapping integer division-by-zero errors with __rt_raise().
of integer division-by-zero errors in C code.
4.57 Examining parameters when integer division-by-zero errors occur in C code.
4.58 Software floating-point division-by-zero errors in C code.
4.59 About trapping software floating-point division-by-zero errors.
4.60 Identification of software floating-point division-by-zero errors.
4.61 Software floating-point division-by-zero debugging.
4.62 New language features of C99.
4.63 New library features of C99.
4.64 // comments in C99 and C90.
4.65 Compound literals in C99.
4.66 Designated initializers in C99.
4.67 Hexadecimal floating-point numbers in C99.
4.68 Flexible array members in C99.
4.69 __func__ predefined identifier in C99.
4.70 inline functions in C99.
4.71 long long data type in C99 and C90.
4.72 Macros with a variable number of arguments in C99.
4.73 Mixed declarations and statements in C99.
4.74 New block scopes for selection and iteration statements in C99.
4.75 _Pragma preprocessing operator in C99.
4.76 Restricted pointers in C99.
4.77 Additional <math.h> library functions in C99.
4.78 Complex numbers in C99.
4.79 Boolean type and <stdbool.h> in C99.
4.80 Extended integer types and functions in <inttypes.h> and <stdint.h> in
4.81 <fenv.h> floating-point environment access in C99.
4.82 <stdio.h> snprintf family of functions in C99.
4.83 <tgmath.h> type-generic math macros in C99.
4.84 <wchar.h> wide character I/O functions in C99.
4.85 How to prevent uninitialized data from being initialized to zero.