When you set up sharing utility code, code generation produces shared utility files for blocks in a model. These blocks require common functionality to implement their algorithm. Other models with an identical shared utility checksum can re-use the code in these shared utility files.
Modularize and share common Model block functionality as helper functions.
Generate reusable code for fixed-point support functions.
Generate reusable code for custom data types.