Custom Processor Details
Specify the sizes of fundamental data types and underlying types of standard typedefs for a custom processor
Since R2023b
Description
This page describes an option in the Polyspace
Platform (Polyspace Test) user interface. For the equivalent option in the standard Polyspace® user interface, see Generic target options
.
For a custom processor, specify the size of fundamental data types, signedness of
char
, alignment of structures, and underlying types of
wchar_t
, size_t
, and
ptrdiff_t
.
Set Option
User interface (Polyspace Platform, desktop products only): To add a custom processor:
Open the configuration settings by clicking the Configuration button on the toolstrip.
Locate the Processor field in the Target & Compiler node of the Build tab.
Click to open the Manage Processors window.
In the Manage Processors window, click Add a processor. Select Custom as the manufacturer.
Set a processor name and click Add.
Click to open the Edit Processor window.
Specify custom processor details in the window.
Command line: To specify a custom target in the command
line, use options such as Target processor type (-target)
or -custom-target
.
Why Use This Option
Use this option to define custom processors with specific alignment, word length, and endianness. If Polyspace does not support a specific processor, you can design your required processor using this option.
Settings
This table lists the properties of a processor that you can specify.
Specification | Value |
---|---|
Size of | You enter a numerical values in text boxes. Example of value include 8,16,32,64. |
Plain char is signed |
|
Size of short | You enter a numerical values in text boxes. Example of value include 8,16, 32, or 64. |
Size of int | You enter a numerical values in text boxes. Example of value include 8,16, 32, or 64. |
Size of long | You enter a numerical values in text boxes. Example of value include 8,16, 32, or 64. |
Size of long long | You enter a numerical values in text boxes. Example of value include 8,16, 32, or 64. |
Size of float | You enter a numerical values in text boxes. Example of value include 8,16, 32, or 64. |
Size of double | You enter a numerical values in text boxes. Example of value include 8,16, 32, or 64. |
Size of long double | You enter a numerical values in text boxes. Example of value include 8,16, 32, or 64. |
Size of pointer | You enter a numerical values in text boxes. Example of value include 8,16, 32, or 64. |
Alignment | This field represent the maximum alignment of integer types. Example values include 32 or 64. |
Minimum alignment of structures | Structures are stored in memory in blocks. The size of these blocks is the
alignment of the structure. This option specifies the minimum value of alignment for
variables of type struct or union . You enter a
numerical value in a text box. Example of value include 4, 8. |
Native word size | You enter a numerical values in text boxes. Example of value include 8,16, 32, or 64. This value indicates the number of bits that the processor can process at a time. |
Byte Ordering | Specify the endianness of the custom processor. From the drop down menu, select one of Unspecified, Little endian, or Big endian. |
Type of wchar_t | Specify the underlying type for
You define the bit length of these types in the same window. |
Underlying type of enum | Specify the underlying type for
|
Type of size_t | Specify the underlying type for
You define the bit length of these types in the same window. In the command line, use the option
|
Type of ptrdiff_t | Specify the underlying type for
You define the bit length of these types in the same window. |
Support long long | If the custom processor, supports the type long long , select
this checkbox. Otherwise, keep the check box empty. |
Version History
Introduced in R2023b