Hi Akshay,
I understand that you are encountering issues with the performance of program execution while making use of 'C2000 Microcontroller Blockset'. To address these issues, I recommend referring to the following MATLAB Answer links, which will assist you in optimizing code execution and provide you with a general troubleshooting guide:
If the issue persists, I recommend reaching out to MathWorks Technical Support through the link below, as they would be able to provide further assistance.
Hope this helps!