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 visualdsp compiler model models the behavior of the VisualDSP++ compilers for SHARC, TigerSHARC and Blackfin processors.
The following file extensions are supported:
| Compiler model | Modeled native compilers | Source file extensions | Description |
|---|---|---|---|
| visualdsp | VisualDSP++ C/C++ compilers for SHARC, TigerSHARC and Blackfin processors | .c, .C | C source file. |
| .cc, .cpp, .cxx, .c++ (case insensitive) | C++ source file. |
| Platform Availability | The visualdsp compiler model is available for all platforms. | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Default Recognition/Handling | By default, compilations
are recognized and handled as follows.
|
||||||||||||
| Specifying Additional Mappings | On other systems, or if your compiler executable has a different name, specify a COMPILER_MODELS rule to map your compiler executable name to the visualdsp model. |
Some handling, including include paths and macro definitions, depends on the name of the invoked native compiler. If the compiler name is not one of those shown in the table above - which can occur if you have set up a COMPILER_MODELS configuration file rule to map an additional executable name to the visualdsp compiler model - the compilation will be handled using the settings for ccblkfn.exe.
For full details of all native compilers recognized by CodeSonar by default, see section Compilers Recognized by CodeSonar.
The visualdsp compiler model supports the following command arguments.
| Option | Additional Treatment in Model |
|---|---|
| -@file -@ file |
Extracts the options specified in file and appends them to the command line. |
| -Dmacro | Defines macro macro to 1. |
| -Dmacro=defn | Defines macro macro with defn as its definition. |
| -double-size-32 | Specifies front end options --cs_targ_sizeof_double 4 and --cs_targ_sizeof_long_double 4, and defines macro __DOUBLES_ARE_FLOATS__=1, unless the command line subsequently contains -double-size-64. |
| -double-size-64 | Specifies front end options --cs_targ_sizeof_double 8 and --cs_targ_sizeof_long_double 8, unless the command line subsequently contains -double-size-32. |
| -Idir | Appends directory dir to the list of directories searched for include files. |
| -I- | For all occurrences of -Idir before before -I-, dir is searched only for include files specified with #include "fname" (not #include <fname>). |
| -implicit-pointers | Specifies front end option --cs_ext_conv_incompat_pointer. |
| -includefile -include file |
Specifies front end option --preinclude file. |
| -no-builtins | Defines macro __NO_BUILTINS=1. (In all other cases, specifies front end option --preinclude builtins.h). |
| -no-std-inc | Specifies that the standard include directories should not be included. |
| -proccpu -proc cpu |
Influences set of defined macros: see below. |
| -signed-bitfield | Specifies front end option --cs_targ_plain_int_bit_field_is_signed. (In all other cases, specifies front end option --cs_targ_plain_int_bit_field_is_unsigned |
| -signed-char | Specifies front end option --signed_chars and defines macro __SIGNED_CHARS__=1, unless the command line subsequently contains -unsigned-char. |
| -Umacro | Undefines macro macro. |
| -unsigned-char | Specifies front end option --unsigned_chars, unless the command line subsequently contains -signed-char. (In all other cases, specifies --signed_chars.) |
| Include path |
Unless -no-std-inc is
specified, two -Idir settings will be specified,
where dir depends on the compiler executable invoked and
on the executable location execpath:
|
||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Front End Options |
The following front end options are always specified.
|
||||||||||||||||||||||||||||||||||||||||
| Macros Defined |
The visualdsp compiler model
defines the following in addition to the standard CodeSonar
predefined macros.
|
||||||||||||||||||||||||||||||||||||||||
| Macros Conditionally Defined |
|
To report problems with this documentation, please visit https://support.codesecure.com/.