Changing the Compiler's Behavior With Options
www.ti.com
Table 2-7. Language Options (continued)
Option Alias Effect Section
--relaxed_ansi -pr Enables relaxed mode; ignores strict ISO violations Section 5.15.2
--rtti -rtti Enables run time type information (RTTI) –-
--static_template_instantiation Instantiate all template entities with internal linkage –-
--strict_ansi -ps Enables strict ISO mode (for C/C++, not K&R C) Section 5.15.2
--use_pch=filename Specifies the precompiled header file to use for this compilation Section 2.5.2
Table 2-8. Parser Preprocessing Options
Option Alias Effect Section
--preproc_dependency[=filename] -ppd Performs preprocessing only, but instead of writing preprocessed Section 2.6.7
output, writes a list of dependency lines suitable for input to a
standard make utility
--preproc_includes[=filename] -ppi Performs preprocessing only, but instead of writing preprocessed Section 2.6.8
output, writes a list of files included with the #include directive
--preproc_macros[=filename] -ppm Performs preprocessing only. Writes list of predefined and user- Section 2.6.9
defined macros to a file with the same name as the input but with a
.pp extension.
--preproc_only -ppo Performs preprocessing only. Writes preprocessed output to a file Section 2.6.3
with the same name as the input but with a .pp extension.
--preproc_with_comment -ppc Performs preprocessing only. Writes preprocessed output, keeping Section 2.6.5
the comments, to a file with the same name as the input but with a
.pp extension.
--preproc_with_compile -ppa Continues compilation after preprocessing Section 2.6.4
--preproc_with_line -ppl Performs preprocessing only. Writes preprocessed output with line- Section 2.6.6
control information (#line directives) to a file with the same name as
the input but with a .pp extension.
Table 2-9. Predefined Symbols Options
Option Alias Effect Section
--define=name[=def] -D Predefines name Section 2.3.1
--undefine=name -U Undefines name Section 2.3.1
Table 2-10. Diagnostics Options
Option Alias Effect Section
--compiler_revision Prints out the compiler release revision and exits --
--diag_error=num -pdse Categorizes the diagnostic identified by num as an error Section 2.7.1
--diag_remark=num -pdsr Categorizes the diagnostic identified by num as a remark Section 2.7.1
--diag_suppress=num -pds Suppresses the diagnostic identified by num Section 2.7.1
--diag_warning=num -pdsw Categorizes the diagnostic identified by num as a warning Section 2.7.1
--display_error_number -pden Displays a diagnostic's identifiers along with its text Section 2.7.1
--emit_warnings_as_errors -pdew Treat warnings as errors Section 2.7.1
--issue_remarks -pdr Issues remarks (nonserious warnings) Section 2.7.1
--no_warnings -pdw Suppresses warning diagnostics (errors are still issued) Section 2.7.1
--quiet -q Suppresses progress messages (quiet) --
--set_error_limit=num -pdel Sets the error limit to num. The compiler abandons compiling after Section 2.7.1
this number of errors. (The default is 100.)
--super_quiet -qq Super quiet mode --
--tool_version -version Displays version number for each tool --
--verbose Display banner and function progress information --
20
Using the C/C++ Compiler SLAU132G–May 2012
Submit Documentation Feedback
Copyright © 2012, Texas Instruments Incorporated