Generating code from a Rational Rhapsody model

This section provides you with basic code generation concepts in IBM® Rational® Rhapsody®. While this section focuses mostly on C++, information about other languages (C, Java, and Ada) might also appear.

Rational Rhapsody generates implementation code from your UML model. You can generate code for -

Inputs to the code generator are the model and the code generation (<lang>_CG and CG) properties. Outputs from the code generator are source files in the target language: specification files, implementation files, and makefiles.

You can set up roundtripping and reverse engineering in Rational Rhapsody Developer for C and C++ so that they respect the structure of the code and preserve this structure when code is roundtripped/regenerated from the Rational Rhapsody model.

C code generation in Rational Rhapsody is compliant with MISRA-C:1998. There are justified violations, which are noted where appropriate.


Feedback