Object code control
These options affect the characteristics of the object code, preprocessed code, or other output generated by the compiler.
Option name | Description |
---|---|
-fcommon (-qcommon) | Controls where uninitialized global variables are allocated. |
-qeh (C++ only) | Controls whether exception handling is enabled in the module being compiled. |
-qfuncsect | Places instructions for each function in a separate section. Placing each function in its own section might reduce the size of your program because the linker can collect garbage per function rather than per object file. |
-qinlglue | When used with -O2 or higher optimization, inlines glue code that optimizes external function calls in your application. |
-qpriority (C++ only) | Specifies the priority level for the initialization of static objects. |
-qreserved_reg | Indicates that the given list of registers cannot be used during the compilation except as a stack pointer, frame pointer or in some other fixed role. |
-qro | Specifies the storage type for string literals. |
-qroconst | Specifies the storage location for constant values. |
-qrtti, -fno-rtti (-qnortti) (C++ only) | Generates runtime type identification (RTTI) information for exception handling and for use by the typeid and dynamic_cast operators. |
-qsaveopt | Saves the command-line options used for compiling a source file, the user's configuration file name and the options specified in the configuration files, the version and level of each compiler component invoked during compilation, and other information to the corresponding object file. |
-r | Produces a nonexecutable output file to use as an input file in another ld command call. This file may also contain unresolved symbols. |
-s | Strips the symbol table, line number information, and relocation information from the output file. |
- -fpack-struct
- -fPIE, -fno-PIE
- -fshort-wchar