Table C-2. HP-UX aCC and g++ Compiler Switches Comparison Table
HP aCC Option
GNU g++ Option
The suffix parameter represents the character or characters to be used as the output filename suffix.
Instructs the compiler to use Koenig lookup and strict ANSI for scope rules.
-std=c++98 (close option found)
Conforms to the ISO C++ standard.
Invokes the compiler in ANSI C89 compilation mode.
-std=c99 (also invoke pendantic flag to receive all diagnostics)
Invokes the compiler in ANSI C99 compilation mode with its features.
Invokes as an ANSI C compiler, with additional support for HP C or GNU language extensions.
-std=iso9899:1990 -std=iso9899:199409 (invoke with Ox flag for optimization options)
In addition to specifying the ANSI C language dialect, allows the optimizer to aggressively exploit the assumption that the source code conforms to the ANSI programming language C standard ISO 9899:1990.
Turns off -AA mode and uses the older C++ runtime libraries.
Creates a shared library rather than an executable file.
Compiles one or more source files but does not enter the linking phase.
Prevents the preprocessor from stripping comments.
Produces dynamically bound executables.
Defines a symbol name (name) to the preprocessor, as if defined by the preprocessing directive #define.
-fno-default- inline (close but not exact)
Prevents the expansion of inline functions.
Displays the options passed, but does not execute.
Enables platform-dependent C++ standards extensions.
Runs only the preprocessor on the named C++ files and sends the result to standard output (stdout).
Selects a combination of optimization options for optimum execution speed for reasonable build times.
Specifies the minimum precision to use for floating-point expression evaluation.
Emits different levels of debug information.
Compiles and creates the executable file instrumented for use with gprof.
Indicates an optional list of -Idirectory specifications.
Causes the program file produced by the linker to be marked as sharable.
Causes the program file produced by the linker to be marked as unsharable.
Causes the output of the compilation to be placed in outfile.
Invokes the optimizer to perform level 2 optimizations.
Compiles and creates the executable file instrumented for use with prof.
Only preprocesses the files named on the command line without invoking further phases. Leaves the result in corresponding files with the suffix .i.
Causes the output file from the linker to be marked as demand-loadable.
Causes the program file from the linker to be marked as not demand-loadable.
Retains relocation information in the output file for subsequent relinking.
Causes the executable program file created by the linker to be stripped of symbol table information.
Compiles the named program and leaves the assembly language output in a corresponding file with an .s suffix.
name is the symbol name whose definition is removed from the preprocessor.
Enables verbose mode, sending a step-by-step description of the compilation process to stderr.
Displays the version numbers of the current compiler and linker (if the linker is executed).
Suppresses all warning messages.
Enables or disables the standard scoping rules for init declarations in for statements.
Enables or disables standard argument-dependent lookup rules (also known as Koenig lookup).
Passes the arguments arg1 through argn to the subprocess x of the compilation.
Enables Native Language Support (NLS) of 8-bit, 16-bit, and 4-byte EUC characters in comments, string literals, and character constants.
Disallows dereferencing of null pointers at runtime.
Allows dereferencing of null pointers at runtime.
Invokes the initial menu window of HP aC++ Online Programmer's Guide.
Specifies incremental linking.
Disables exception handling.
Eliminates references to the standard header files and libraries bundled with HP aC++.
The initialization checking feature.
Specifies unqualified char/short/int/ long/long long bitfields as signed.
Specifies whether references to thread local data items are to be performed according to the mode.
Specifies unqualified char/short/int/ long/long long bitfields as unsigned.
Specifying +uc causes an unqualified (plain) char data type to be treated as unsigned char.
Selectively suppresses any specified warning messages, where arg1 through argn are valid compiler warning message numbers.
Interprets all warning and future error messages as errors.
Selectively interprets any specified warning or future error messages as errors. arg1 through argn are valid compiler warning message numbers.
Selectively treats compiler warnings as warnings. arg1 through argn are valid compiler message numbers.
Hardware trap FPEs.