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/TM4C123GH6PM: illegal error while compile

Part Number: TM4C123GH6PM


Tool/software: TI C/C++ Compiler

Hello All, 

In the startOS assembly function, i am trying to get the address of the RunPt (which is global variable in .c file) into register R0 but this generates compile time error. When i use GNU compiler in the project options it the building completed without errors. Is there any other technique to get the address of C variable into a CPU register. 

The screenshot is attached. 

Regards, 

Sarea Al Hariri