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.

Getting Compilation Errors: error #126: expected a "(" and error #18: expected a ")"

Hi,

I am getting above mentioned compilation errors when I compile using CCS v5.1 and TMS470 Tools. With GCC I am not getting the compilation error.

Here is the source code lines

__asm__ __volatile__("swpb %0, %1, [%2]"

:"=&r" (ret)

:"r" (x), "r" (ptr)

:"memory");

Please help me.

 

Regards,

Subhashini