Please note as of Wednesday, August 15th, 2018 this wiki has been set to read only. If you are a TI Employee and require Edit ability please contact x0211426 from the company directory.

Compiler option cleanup

From Texas Instruments Wiki
Jump to: navigation, search

In an effort to reduce the clutter in the CCS project settings we have removed/deprecated supported for several compiler options. These changes are effective in the ARM, C28x, and MSP430 compilers starting with 16.6.0.STS.


Deprecated/Removed Options

This is the list of options that are either removed or deprecated. All the options in this list will no longer appear in CCS, the help output, or the documentation. Options with a remark diagnostic are still accepted, but it is recommended that you avoid using them.

Option

Diagnostic

ISA

Notes

--optimize_with_debug

Remark

All

This option is the default behavior of the compiler. The presence of debug information does not restrict optimizations.

--symdebug:keep_all_types

Remark

All

This is a COFF only option and no longer relevant.

--no_intrinsics

Remark

All


All precompiled header file options

Error

All


--static_template_instantiation

Error

All except C28x

This option is only useful for COFF, which is no longer supported for any ISAs except C28x

--gcc

Remark

All

This behavior is enabled by default

--buffer_diagnostics

Remark

All

This behavior is enabled by default

-mt

Remark

ARM

Use –code_state=16 instead.

--abi

Remark

All except C28x

Every target except C28x only supports EABI.

--profile:power

Error

All

This features has been deprecated for a long time.

--small_enum

Remark

All

The size of enums can be controlled by the –enum_type option

--max_branch_chain and –disable_branch_chaining

Remark

ARM

This is a very advanced optimization setting that is difficult to tweak.

--c2xlp_src_compatible

Remark

C28x


--asm_code_fill, --asm_data_fill

Remark

C28x


--single_inline

Remark

All


--opt_for_cache

Remark

ARM

The –opt_for_cache option was an experiment that turned out not to work well in many cases. We advise that you try different –opt_for_speed settings to get the best performance on cache devices.

--syms_ignore_case

Remark

All


--copy_file

Remark

All

Use the .copy directive in assembly code.

--no_const_clink

Remark

All

Use –data_subsections=off instead.

--output_all_syms

Remark

All

This is the default behavior of the compiler.

--ual

Remark

ARM

This is the default behavior of the compiler.

--cdebug_asm_data

Error

C28x


--asm_remarks

Remark

C28x

Use –issue_remarks instead.

--keep_unneeded_statics

Remark

All

Use the RETAIN pragma to keep unreferenced symbols.

--std_lib_defined

--std_lib_redefined

--std_lib_not_defined

Remark

All

The –std_lib_redefined option is the only one that has any effect on the compilation. Users are required to adhere to the C/C++ language standards when overriding library functions.

--multibyte_chars

Remark

All

This is the default behavior of the compiler.

--disable_dual_state

Remark

ARM

This option is not applicable for EABI.

--signed_chars

Remark

ARM

Use –plain_char=signed.

--kr_compatible

Error

All


--embedded_cpp

Error

All



Options that are hidden in CCS

This list contains options that are hidden in CCS. The options are still available to users that use the command line to run the compiler.

Option

Notes

--tool_version

This information can be found in the project settings

--verbose_diagnostics

The option causes issues with the CCS problem viewer.

--diag_wrap

The option causes issues with the CCS problem viewer.

--display_error_number

CCS requires this option to be set

--write_diagnostic_file

The option causes issues with the CCS problem viewer

--gen_dead_funcs_list/--use_dead_funcs_list

The options do not work well with the CCS compilation flow. The –o4, -pm, --gen_func_subsections options are preferred.[1]

  1. Note: The --gen_func_subsections option is not available for the MSP430 and PRU compilers, because function subsections are always generated for these target families.

Renamed Options

This is the list of renamed options. The old form is still accepted, but a remark will be issued. CCS users will automatically use the new options when a project is migrated to a new compiler.

Option

New name

--gen_acp_xref

--gen_cross_reference

--cross_reference

--asm_listing_cross_reference

--gen_acp_raw

--gen_parser_listing

--gen_aux_user_info

--gen_func_info_listing