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.

Compilation option/Pragma to select ARM/THUMB Mode for each function in a particular file

Hi,

Currently there is an option for each file in the properties to select the processor mode arm/thumb. Will the implemented code with few files being compiled in arm and others in thumb mode work as expected(Do we need to take care of more aspects?) 

Assuming nothing extra has to be taken care, lets say for each function inside the file we want to decide the mode, is there some pragma so that it can be done? which provides full flexibility in selecting the processor mode for each function.

We are using ti arm clang as the compiler and cortex R5 as the device