You can configure the code generator to change the code that it generates for functions and operators such that the code meets application requirements. Configure the code generator to apply a code replacement library (CRL) during code generation. If you have Embedded Coder®, you can develop and apply custom code replacement libraries.
For more information about replacing code, using code replacement libraries that MathWorks® provides, see What Is Code Replacement? (Embedded Coder) and Code Replacement Libraries. For information about developing code replacement libraries, see What Is Code Replacement Customization? (Embedded Coder).