Compiler Command-line Options
The following command-line options are accepted by the compiler, armcc,
version 4.1 and later:
-Aopt
--allow_fpreg_for_nonfpdata, --no_allow_fpreg_for_nonfpdata
--allow_null_this, --no_allow_null_this
--alternative_tokens, --no_alternative_tokens
--anachronisms, --no_anachronisms
--apcs=qualifer...qualifier
--arm
--arm_linux
--arm_linux_config_file=path
--arm_linux_configure
--arm_linux_paths
--arm_only
--asm
--asm_dir=directory_name
--autoinline, --no_autoinline
--bigend
--bitband
--brief_diagnostics, --no_brief_diagnostics
--bss_threshold=num
-c
-C
--c90
--c99
--code_gen, --no_code_gen
--compatible=name
--compile_all_input, --no_compile_all_input
--conditionalize, --no_conditionalize
--configure_cpp_headers=path
--configure_extra_includes=paths
--configure_extra_libraries=paths
--configure_gas=path
--configure_gcc=path
--configure_gcc_version=version
--configure_gld=path
--configure_sysroot=path
--cpp
--cpu=list
--cpu=name
--create_pch=filename
-Dname[(parm-list)][=def]
--data_reorder, --no_data_reorder
--debug, --no_debug
--debug_macros, --no_debug_macros
--default_definition_visibility=visibility
--default_extension=ext
--dep_name, --no_dep_name
--depend=filename
--depend_dir=directory_name
--depend_format=string
--depend_single_line, --no_depend_single_line
--depend_system_headers, --no_depend_system_headers
--depend_target=target
--device=list
--device=name
--diag_error=tag[,tag,...]
--diag_remark=tag[,tag,...]
--diag_style={arm|ide|gnu}
--diag_suppress=tag[,tag,...]
--diag_suppress=optimizations
--diag_warning=tag[,tag,...]
--diag_warning=optimizations
--dllexport_all, --no_dllexport_all
--dllimport_runtime, --no_dllimport_runtime
--dollar, --no_dollar
--dwarf2
--dwarf3
-E
--echo
--emit_frame_directives, --no_emit_frame_directives
--enum_is_int
--errors=filename
--exceptions, --no_exceptions
--exceptions_unwind, --no_exceptions_unwind
--execstack, --no_execstack
--export_all_vtbl, --no_export_all_vtbl
--export_defs_implicitly, --no_export_defs_implicitly
--extended_initializers, --no_extended_initializers
--feedback=filename
--force_new_nothrow, --no_force_new_nothrow
--forceinline
--fp16_format=format
--fpmode=model
--fpu=list
--fpu=name
--friend_injection, --no_friend_injection
-g
--global_reg=reg_name[,reg_name,...]
--gnu
--gnu_defaults
--gnu_instrument, --no_gnu_instrument
--gnu_version=version
--guiding_decls, --no_guiding_decls
--help
--hide_all, --no_hide_all
-Idir[,dir,...]
--ignore_missing_headers
--implicit_include, --no_implicit_include
--implicit_include_searches, --no_implicit_include_searches
--implicit_key_function, --no_implicit_key_function
--implicit_typename, --no_implicit_typename
--import_all_vtbl
--info=totals
--inline, --no_inline
--interface_enums_are_32_bit
--interleave
-Jdir[,dir,...]
--kandr_include
-Lopt
--library_interface=lib
--library_type=lib
--licretry
--link_all_input, --no_link_all_input
--list
--list_dir=directory_name
--list_macros
--littleend
--locale=lang_country
--long_long
--loose_implicit_cast
--lower_ropi, --no_lower_ropi
--lower_rwpi, --no_lower_rwpi
--ltcg
-M
--md
--message_locale=lang_country[.codepage]
--min_array_alignment=opt
--mm
--multibyte_chars, --no_multibyte_chars
--multifile, --no_multifile
--multiply_latency=cycles
--narrow_volatile_bitfields
--nonstd_qualifier_deduction, --no_nonstd_qualifier_deduction
-o filename
-Onum
--old_specializations, --no_old_specializations
--old_style_preprocessing
-Ospace
-Otime
--output_dir=directory_name
-P
--parse_templates, --no_parse_templates
--pch
--pch_dir=dir
--pch_messages, --no_pch_messages
--pch_verbose, --no_pch_verbose
--pending_instantiations=n
--phony_targets
--pointer_alignment=num
--preinclude=filename
--preprocess_assembly
--preprocessed
--project=filename, --no_project
--protect_stack, --no_protect_stack
--reassociate_saturation, --no_reassociate_saturation
--reduce_paths, --no_reduce_paths
--reinitialize_workdir
--relaxed_ref_def, --no_relaxed_ref_def
--remarks
--remove_unneeded_entities,
--no_remove_unneeded_entities
--restrict, --no_restrict
--retain=option
--rtti, --no_rtti
--rtti_data, --no_rtti_data
-S
--shared
--show_cmdline
--signed_bitfields, --unsigned_bitfields
--signed_chars, --unsigned_chars
--split_ldm
--split_sections
--strict, --no_strict
--strict_warnings
--sys_include
--thumb
--translate_g++
--translate_gcc
--translate_gld
--trigraphs, --no_trigraphs
--type_traits_helpers, --no_type_traits_helpers
-Uname
--unaligned_access, --no_unaligned_access
--use_frame_pointer
--use_gas
--use_pch=filename
--using_std, --no_using_std
--vectorize, --no_vectorize
--version_number
--vfe, --no_vfe
--via=filename
--visibility_inlines_hidden
--vla, --no_vla
--vsn
-W
-Warmcc,option[,option,...]
-Warmcc,--gcc_fallback
--wchar, --no_wchar
--wchar16
--wchar32
--whole_program
--workdir=directory
--wrap_diagnostics, --no_wrap_diagnostics.