Weiwu Li, MathWorks
Use the C Caller block to integrate your C code into Simulink® models. The C Caller block resolves source C code and extracts the functions to utilize in your Simulink models. C Caller block only supports models with no dynamic states and variables. To include dynamic states and variables in your model, see Implement C/C++ S-Functions.
Generating code using the C Caller block eliminates the need for writing Target Language Compiler (TLC) files.