Package: coder
codegen
configuration object that
specifies hardware implementation parameters for code generation
A coder.HardwareImplementation
object contains
hardware-specific configuration parameters. The codegen
function
uses these parameters to generate standalone C/C++ libraries and executables
for specific target hardware. To use this object, refer to it from
the related coder.CodeConfig
or coder.EmbeddedCodeConfig
object
that codegen
is using.
hw_cfg = coder.HardwareImplementation
creates
a coder.HardwareImplementation
object.
|
Description of hardware implementation object.
|
|
Name of hardware implementation object.
|
|
Describe length in bits of the C Value must be a multiple of 8 between 8 and 32. Dependencies:
|
|
Describe the bit length of C
|
|
Describe the bit length of C floating-point data type that the deployment hardware supports (read only).
|
|
Describe length in bits of the C Value must be a multiple of 8 between 8 and 32. Dependencies:
|
|
Describe length in bits of the C Value must be a multiple of 8 between 32 and 128. Dependencies:
|
|
Describe length in bits of the C Tips:
Dependencies:
|
|
Describe the bit-length of pointer data for the deployment hardware (read only).
|
|
Describe the bit-length of If Value must be 8, 16, 24, 32, 40, 64, or 128 and greater or equal to the value of int. Dependencies:
|
|
Describe the bit-length of If Value must be 8, 16, 24, 32, 40, 64, or 128 and greater or equal to the value of int. Dependencies:
|
|
Describe length in bits of the C Value must be a multiple of 8 between 8 and 32. Dependencies:
|
|
Describe significance of the first byte of a data word for the deployment hardware.
|
|
Specify whether the test hardware differs from the deployment hardware. Dependencies:
|
|
Specify manufacturer and type of hardware that you use to implement the production version of the system. Because
|
|
Describe how your compiler rounds the result of dividing one signed integer by another to produce a signed integer quotient.
|
|
Specify the largest floating-point data type that can be atomically loaded and stored on the deployment hardware. Dependencies:
|
|
Specify the largest integer data type that can be atomically loaded and stored on the deployment hardware. Dependencies:
|
|
Specify that your C compiler supports the C Tips:
Dependency:
|
|
Describe whether your compiler implements a signed integer right shift as an arithmetic right shift.
|
|
Describe microprocessor native word size for the deployment hardware. Value must be a multiple of 8 between 8 and 64. Dependencies:
|
|
Describe length in bits of the C Value must be a multiple of 8 between 8 and 32. Dependencies:
|
|
Describe the bit length of C
|
|
Describe the bit length of C floating-point data type that the test hardware supports (read only).
|
|
Describe length in bits of the C Value must be a multiple of 8 between 8 and 32. Dependencies:
|
|
Describe length in bits of the C Value must be a multiple of 8 between 32 and 128. Dependencies:
|
|
Describe length in bits of the C Dependencies:
Tips:
|
|
Describe the bit-length of pointer data for the test hardware (read only).
|
|
Describe the bit-length of If Value must be 8, 16, 24, 32, 40, 64, or 128 and greater or equal to the value of int. Dependencies:
|
|
Describe the bit-length of If Value must be 8, 16, 24, 32, 40, 64, or 128 and greater or equal to the value of int. Dependencies:
|
|
Describe length in bits of the C Value must be a multiple of 8 between 8 and 32 . Dependencies:
|
|
Describe significance of the first byte of a data word for the test hardware.
|
|
Specify manufacturer and type of the hardware that you use to test the generated code. Because
|
|
Describe how your compiler rounds the result of two signed integers for the test hardware.
|
|
Specify the largest floating-point data type that can be atomically loaded and stored on the test hardware. Dependencies:
|
|
Specify the largest integer data type that can be atomically loaded and stored on the test hardware. Dependencies:
|
|
Specify that your C compiler supports the C Tips:
Dependency: This parameter enables use of
|
|
Describe whether your compiler implements a signed integer right shift as an arithmetic right shift.
|
|
Describe microprocessor native word size for the test hardware. Value must be a multiple of 8 between 8 and 64. Dependencies:
|
Handle. To learn how handle classes affect copy operations, see Copying Objects in the MATLAB® documentation.
Create a hardware implementation configuration object. Use the object to generate a C static library.
Create a hardware implementation configuration object.
hw_cfg = coder.HardwareImplementation;
Create a code generation configuration object to generate a C static library.
cfg = coder.config('lib');
Associate the hardware implementation object with the code generation configuration object.
cfg.HardwareImplementation = hw_cfg;
Generate a C library for a MATLAB function foo
that
has no input parameters. Specify
the configuration object using the -config
option:
codegen -config cfg foo
Use the coder
function to create a MATLAB Coder™ project.
The project provides a user interface that facilitates adding MATLAB files,
defining input parameters, and specifying build parameters.
codegen
| coder
| coder.CodeConfig
| coder.EmbeddedCodeConfig