This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler: Function entry/exit hooks



Tool/software: TI C/C++ Compiler

Hi,

I am trying to use "--entry-hook" and "--exit-hook' to trace call flow with SWO on MSP432. The application and stack is developed in 'C. Just enabling the hooks in the compiler seems to add a lot of overhead. My interest is to enable the hooks only for certain files. From the Compiler manual, i see that "NO_HOOKS" pragma is applied to the specified function only. 

Is, there a way to enable hooks only for certain files in the project? {the project is developed in 'C'}

Thanks