JavaScript is not currently enabled, but is required for full CodeSonar manual search and browse functionality.
If you are viewing this file in your hub's Web GUI, enable JavaScript in your browser: you will also need it for GUI functionality.
If you opened this file directly from disk, your browser may be directly suppressing JavaScript functionality: certain browsers perform this suppression on local files (but not files delivered by web servers) for security reasons.
| CodeSonar® 9.2p0 | CONFIDENTIAL | CodeSecure Inc |
The tasking compiler model models the behavior of the TASKING TriCore, PCP, and C166/ST10 compilers.
The following file extensions are supported:
| Source file extensions | Description |
|---|---|
| .cc, .cpp, .cxx, .CPP, .CPP, .ii | Always treated as a C++ source file. |
| otherwise (including no file extension) | Treated as a C source file unless the native compiler name is cptc or cp166, in which case it is treated as a C++ source file. |
| Platform Availability | The tasking compiler model is available for all platforms. | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Default Recognition/Handling | By default, compilations
are recognized and handled as follows.
|
||||||||||||||||||
| Specifying Additional Mappings | If your compiler executable has a different name, specify a corresponding COMPILER_MODELS rule to map your executable name to the tasking model. |
For full details of all native compilers recognized by CodeSonar by default, see section Compilers Recognized by CodeSonar.
The following command arguments are interpreted by the tasking compiler model. All others are silently ignored by the model.
| Argument | Alias | Additional Treatment in Model |
|---|---|---|
| --cpu
val --cpu=val |
-C val -Cval |
Defines the following macros, unless superseded by a later
occurrence of --cpu/-C.
|
| --define m --define=m |
-D m -Dm |
Defines macro m to 1. |
| --define
m=d --define=m=d |
-D m=d -Dm=d |
Defines macro m to d. |
| - | -I dir -Idir |
Specifies front end option -Idir. |
| --exceptions | -x | Defines macro __EXCEPTIONS=1. |
| - | -fsigned-char | Specifies front end option --signed_chars. |
| - | -funsigned-char | Specifies front end option --unsigned_chars. |
| --include-file
fname --include-file=fname |
- | Specifies front end option --preinclude fname. |
| --no-double | -F | Defines macro __DOUBLE_FP__=1. |
| --optimize --optimize val --optimize=val |
-O -O val -Oval |
Specifies front end option --optimize and defines macro __OPTIMIZE__=1. If optional argument val is specified and is s, also defines macro __OPTIMIZE_SIZE__=1. |
| --option-file
fname --option-file=fname |
-f fname -ffname |
Extracts the options specified in file and appends them to the argument list for processing. |
| --schar | -s | Specifies front end option --signed_chars. |
| --uchar | -u | Specifies front end option --unsigned_chars. |
| --undefine m | -U m | Undefines macro m. |
| Include path |
One or more -Idir settings will be specified, with
the dir values determined as follows.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Preinclude path | The model will specify --preinclude fname for every --include-file=fname specified on the command line. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Macros Always Defined |
The tasking compiler model
defines the following in addition to the standard CodeSonar
predefined macros.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Macros Conditionally Defined |
The tasking compiler model
defines the following macros under specific conditions.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Macros Hard-Undefined | The tasking compiler model hard-undefines macro __GNUC__. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Keywords |
The compiler model scans and ignores the following TASKING
compiler keywords.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Front end options |
The following front end options are always specified.
The following front end options are specified for all C compilations. The following front end options are specified for all C++ compilations. The following front end options are specified only if certain command line arguments are provided.
|
To report problems with this documentation, please visit https://support.codesecure.com/.