IBM Support

How to reduce size of the generated code in Rational Rhapsody

Question & Answer


Question

How do you reduce the size of the generated code in IBM Rational Rhapsody?

Cause

Reducing the size of the generated code would help you in removing the unwanted section of generated code.

Answer

In order to reduce the size of generated code, use one of the following methods :

Method 1: Unchecking of undesired Properties

Unchecking of specific code generating properties would render some aspects of the code from not being generated.


Method 2: Using IDF or NOF

Interrupt Driven Framework or No Framework are customized / customizable framework / property settings that take away the OXF (framework) dependencies from the generated code.


Method 3: Customizing code generation rules

This can be achieved by making use of Rational RulesComposer, an utility provided along with Rational Rhapsody which helps you to create customizable code generation rules. This would make the generated code independent of the OXF dependency


Method 4: Using Post Processing Scripts

Usage of Post Processing script to remove unwanted generated code (like comments, dead code)

[{"Product":{"code":"SSB2MU","label":"IBM Engineering Systems Design Rhapsody"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"General Information","Platform":[{"code":"PF033","label":"Windows"}],"Version":"7.2;7.3;7.4;7.4.0.1;7.5;7.5.0.1;7.5.1;7.5.1.1;7.5.2;7.5.2.1;7.5.3;7.5.3.1;7.5.3.2;7.6","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Product Synonym

Rational Rhapsody

Document Information

Modified date:
27 May 2022

UID

swg21424940