MATLAB: Is the ‘rtw_shared_utils.h’ file included in the code when I generate code for the model using Real-Time Workshop Embedded Coder 5.2 (R2008b)

Embedded Coderrtw_shared_utilssharedutilsslprj

I am able to generate code from my model using Real-Time Workshop Embedded Coder 5.2 (R2008b) without any issues.
However, in the code generation report, I observe the following line of code.
#include "rtw_shared_utils.h"
I would like to know the reason for including this file and also its location.

Best Answer

The 'rtw_shared_utils.h' file is generated and included when a shared utilities directory is created during the Real-Time Workshop build process. The shared utilities directory is created when the model being built contains Model blocks, or when the 'Utility Function Generation' option has been explicitly set to 'Shared Location'. This option is available on the 'Interface' pane in the Configuration Parameters window.
If generated, the 'rtw_shared_utils.h' file is located in the following directory:
slprj/target/_sharedutils
For more information on Shared Utility Generation, refer to the documentation link below.
<http://www.mathworks.com/access/helpdesk/help/toolbox/rtw/ug/bqfo0nj-1.html>