Glossary
| Acronym | Definition |
|---|---|
| SPO | Software Production Operation |
| BL | Behavior Layer |
| ML | Middleware Layer |
| BSM | Behavior Specific Middleware |
| TSM | Target Specific Middleware |
Glossary
Referenced Documents
General Concepts
UML to C code operation is a code generation operation producing C Code from UML entities. UML entities belong to a design composed of multiple design patterns described as follows: See [10] for more information. Components Layer GenerationThis operation generates the code associated with the Components Layer. Refer to [9] for more information on the Components layer. ![]() Note: A Software Producer model is generated with the code. The purpose of this mode is to describe the contract of the generated components and the connection between them. It mainly contains a description of:
See [1] for more information on the Software Producer Model. See [2] for more information on the model generation. The generated code for a component can be composed of:
The generated code for the Communication & Scheduling Component specifies the communication between the components. It also schedules the behaviors triggered by Execution Types. See [12] It is generated from a composition of components or from a single component to expose its communication points. UML to C code generation operation generates automatically all of these elements. The generated code of behaviors must have a predictable behavior. To respect this constraint, the input behavior must respect design patterns. The user is guided during the design phase thanks to validation constraints. Only a limited list of designed patterns is supported by the generator. See the dedicated documents for more information. The code generator produces a valid code nevertheless, some specific parts, for example, the implementation of a state in a statemachine. You can implement or customize it, but the parts must respect the constraints described above. Once the code is generated, you can modify identified parts of the generated code. These sections of code are identified through comments in the generated code as user code sections. User code sections can be used by other applications to perform a round-trip operation and replicate the modified code in the input model. Note: user code sections can be protected from one generation to another to avoid code loss. See [8] for more information on user code sections. LimitationCase of ambiguous semantics will be clarified in the next iteration of SysML Statemachine generator function. A typical example is the order used to read and manage input signals, which impacts the statemachine behavior. Input ElementsNot applicable Validation ConstraintsGenerated code from a UML / SysML Behavior is expected to have predictable behavior. To respect this highly important constraint, the input behavior must respect design patterns. Only a limited list of designed patterns is supported by the generators and is described in specific documents. Validation constraints are described in the code generators specific to each UML and SysML behavior. See the dedicated specification for more information. Code Generator SpecificationSoftware Production Operation Identity Card
Parameterscode_deployment_id Parameter
report_name Parameter
dry_run Parameter
Validate Parameter
report_html Parameter
Implementation Generation Parameter
Instrumented Code Parameter
output Parameter
Objects Allocation Parameter
Objects Access Parameter
Memory Optimization Parameter
Central Pool Size parameter
Default Pool Size Parameter
Tick Frequency Parameter
Compiler Parameter
Misra Violation Comment Parameter
Misra Ignore Parameter
C Version Parameter
Derive Instance Graph Parameter
Files SpecificationThe code generator generates C code compliant with standard c99, c11, c17, c18. Any character of the block name or the class name which is different of a digit, an ASCII letter, a - or a _, is replaced by an _ in the generated folder / file. The file name of each behavior is composed with the parent names and its name separated by underscore.
Example 1 of a sub behavior file name called by the classifier behavior.
Example 2 of a sub sub behavior file name called by a sub behavior called itself by the classifier behavior. The operation must support the file header customization as defined in [8]. Depending on the behavior type, code generation is described in dedicated specification documents. For each behavior type, the name of the generated files is composed of a variable part and a fixed one. The variable part is identified in the specification documents as follows: <Behavior> and is replaced with the parent names as described above. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||