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
C and C++


Freescale CodeWarrior Compiler Models

Note that these models do not rely on the specialized CodeSonar CodeWarrior DLL Approach. In particular, you do not need to install the CodeWarrior support component to use the chc12, mwccmcf or mwccarm model.



Overview

The following file extensions are supported:

Compiler model Modeled native compiler Source file extensions Description
chc12 Freescale CodeWarrior for HC12 compiler .c, .C C source file.
.cc, .cpp, .CPP, .cxx, .CXX, .ii C++ source file.
mwccarm Freescale CodeWarrior for Embedded ARM compiler .c, .C
(case insensitive)
C source file.
.cc, .cpp, .cxx, .i, .ii
(case insensitive)
C++ source file.
mwccmcf Freescale CodeWarrior for ColdFire compiler .c, .C
(case insensitive)
C source file.
.cc, .cpp, .cxx, .i, .ii
(case insensitive)
C++ source file.

Availability

Platform Availability The chc12, mwccarm, and mwccmcf compiler models are available as follows.
chc12 all platforms
mwccarm and mwccmcf Windows only
Default Recognition/Handling By default, compilations are recognized and handled as follows.
Platform Native Compiler Model Used
Windows only mwccarm.exe mwccarm
Windows only mwccmcf.exe mwccmcf
Specifying Additional Mappings To map the 'chc12' compiler executable to the chc12 model on Windows:
COMPILER_MODELS += chc12.exe -> chc12
On other systems:
COMPILER_MODELS += chc12 -> chc12
The mwccmcf compiler model may also be a suitable model for other CodeWarrior compilers in 10.X, but may need additional configuration. This model has not been extensively tested with other CodeWarrior compilers.
If you wish to use the mwccmcf model to handle other CodeWarrior compilations, use a COMPILER_MODELS configuration file rule to specify the mapping.
For example:
COMPILER_MODELS += mwccfoo.exe -> mwccmcf

The chc12 compiler model may also be a suitable model for the chc08 compiler, but it is important to note that chc12 takes a single source file input and the chc12 model follows this behavior, so chc08 invocations with multiple source file inputs will not be handled correctly.

If you wish to use the chc12 model to handle chc08 compilations, use a COMPILER_MODELS configuration file rule to specify the mapping:

Windows:
COMPILER_MODELS += chc08.exe -> chc12
Other systems:
COMPILER_MODELS += chc08 -> chc12

If you encounter unexpected parse errors, contact CodeSecure support for assistance.

For full details of all native compilers recognized by CodeSonar by default, see section Compilers Recognized by CodeSonar.

 

To report problems with this documentation, please visit https://support.codesecure.com/.