Table Of Contents - Red Hat ENTERPRISE LINUX 3 - USING GCC Using Instructions

Using the gnu compiler collection (gcc)
Hide thumbs Also See for ENTERPRISE LINUX 3 - USING GCC:
Table of Contents

Advertisement

Table of Contents

1. Introduction..................................................................................................................................... 1
2. Compile C, C++, Objective-C, Ada, Fortran, Java, or treelang ................................................. 3
3. Language Standards Supported by GCC ..................................................................................... 5
4. GCC Command Options ................................................................................................................ 7
4.1. Option Summary................................................................................................................ 7
4.2. Options Controlling the Kind of Output .......................................................................... 12
4.3. Compiling C++ Programs................................................................................................ 15
4.4. Options Controlling C Dialect ......................................................................................... 15
4.5. Options Controlling C++ Dialect..................................................................................... 19
4.6. Options Controlling Objective-C Dialect ........................................................................ 25
4.7. Options to Control Diagnostic Messages Formatting ...................................................... 26
4.8. Options to Request or Suppress Warnings....................................................................... 26
4.9. Options for Debugging Your Program or GCC ............................................................... 38
4.10. Options That Control Optimization ............................................................................... 47
4.11. Options Controlling the Preprocessor............................................................................ 64
4.12. Passing Options to the Assembler.................................................................................. 72
4.13. Options for Linking........................................................................................................ 72
4.14. Options for Directory Search ......................................................................................... 75
4.15. Specifying subprocesses and the switches to pass to them............................................ 76
4.16. Specifying Target Machine and Compiler Version ........................................................ 83
4.17. Hardware Models and Configurations ........................................................................... 83
4.17.1. SPARC Options............................................................................................... 84
4.17.2. IBM RS/6000 and PowerPC Options ............................................................. 87
4.17.3. Intel 386 and AMD x86-64 Options ............................................................... 95
4.17.4. IA-64 Options ............................................................................................... 100
4.17.5. S/390 and zSeries Options ............................................................................ 102
4.18. Options for Code Generation Conventions .................................................................. 103
4.19. Environment Variables Affecting GCC ....................................................................... 108
4.20. Using Precompiled Headers......................................................................................... 110
4.21. Running Protoize ......................................................................................................... 111
5. C Implementation-defined behavior ......................................................................................... 115
5.1. Translation ..................................................................................................................... 115
5.2. Environment................................................................................................................... 115
5.3. Identifiers ....................................................................................................................... 115
5.4. Characters ...................................................................................................................... 115
5.5. Integers........................................................................................................................... 116
5.6. Floating point ................................................................................................................. 116
5.7. Arrays and pointers ........................................................................................................ 117
5.8. Hints............................................................................................................................... 117
5.9. Structures, unions, enumerations, and bit-fields ............................................................ 117
5.10. Qualifiers...................................................................................................................... 118
5.11. Preprocessing directives............................................................................................... 118
5.12. Library functions.......................................................................................................... 118
5.13. Architecture.................................................................................................................. 118
5.14. Locale-specific behavior .............................................................................................. 119

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ENTERPRISE LINUX 3 - USING GCC and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Enterprise linux 3

Table of Contents