You copied the Doc URL to your clipboard.

--translate_g++

Helps to emulate the GNU compiler in C++ mode by enabling the translation of command lines from the GNU tools.

Usage

You can use this option to provide either of the following:

  • A full GCC emulation targeting ARM Linux.

  • A subset of full GCC emulation in the form of translating individual GCC command-line arguments into their ARM compiler equivalents.

To provide a full ARM Linux GCC emulation, you must also use --arm_linux_config_file. This combination of options selects the appropriate GNU header files and libraries specified by the configuration file, and includes changes to some default behaviors.

To translate GCC command-line arguments into their ARM compiler equivalents without aiming for full GCC emulation, use --translate_g++ to emulate g++, but do not use it with --arm_linux_config_file. Because you are not aiming for full GCC emulation with this method, the default behavior of the ARM compilation tools is retained, and no defaults are set for targeting ARM Linux. The library paths and option defaults for the ARM compilation tools remained unchanged.

Specifying multiple GNU translation modes on the same command line is ambiguous to the compiler. The first specified translation mode is used, and the compiler generates a warning message. For example, given armcc --translate_g++ --translate_gld, the compiler uses --translate_g++, ignores --translate_gld, and generates a warning message.

If you specify an ARM Linux configuration file on the command line and you use --translate_g++, this alters the default settings for:

  • --exceptions, --no_exceptions.

  • --bss_threshold.

  • --relaxed_ref_def, --no_relaxed_ref_def

  • --signed_bitfields, --unsigned_bitfields.

To selectively specify options that are not to be translated, use -Warmcc.

Was this page helpful? Yes No