polyspace.GenericTargetOptions Class
Namespace: polyspace
Create a generic target configuration
Description
Create a custom target for a Polyspace® analysis if your target processor does not match one of the predefined targets,.
Note
Before you run Polyspace from MATLAB®, you must link your Polyspace and MATLAB installations. See Integrate Polyspace with MATLAB and Simulink or Integrate Polyspace Server Products with MATLAB.
Construction
creates a generic target that you can customize. To specify the sizes and alignment of
data types, change the properties of the object. For
instance:genericTarget
= polyspace.GenericTargetOptions
target = polyspace.GenericTargetOptions; target.CharNumBits = 16;
Properties
Copy Semantics
Value. To learn how value classes affect copy operations, see Copying Objects.
Examples
Customize Generic Target Settings
Use a custom target for the Polyspace analysis.
Create two objects: a polyspace.GenericTargetOptions
object for creating a custom target and a
polyspace.Project
object for running the Polyspace analysis.
target = polyspace.GenericTargetOptions; proj = polyspace.Project;
Customize the generic target.
target.Endianess = 'big';
target.LongLongNumBits = 64;
target.ShortNumBits = 8;
Add the custom target to the Configuration
property of
the polyspace.Project
object.
proj.Configuration.TargetCompiler.Target = target;
You can now use the polyspace.Project
object to run the
analysis.
polyspace.Project
| polyspace.Options
| polyspace.ModelLinkOptions
| polyspace.CodingRulesOptions
| Generic target options
Version History
Introduced in R2016b