Stateflow | ![]() ![]() |
RTW Coder Options Dialog Box
The RTW Coder Options dialog box provides the following options.
Comments in generated code.. Include comments in the generated code.
Enable C-like bit operations. Recognize C bit-wise operators (~, &, |, ^, >>, etc.) in action language statements and encode these operators as C bit-wise operations.
Preserve symbol names. Preserve symbol names (names of states and data) when generating code. This is useful when the target contains custom code that accesses state machine data. Note that this option can generate duplicate C symbols if the source chart contains duplicate symbols, for example, two substates with identical names. Enable the next option to avoid duplicate substate names.
Append symbol names with parent names. Generates a state or data name by appending the name of the item's parent to the item's name.
Use chart names with no mangling. Exports the names of generated functions so that they can be invoked by user-written C code.
Use bitsets for storing state configuration. Use bitsets for storing state configuration variables. This can significantly reduce the amount of memory required to store the variables. However, it can increase the amount of memory required to store target code if the target processor does not include instructions for manipulating bitsets.
![]() | Simulation Coder Options Dialog Box | Specifying Custom Code Options | ![]() |