Sairam all

I had hard time with this particular problem.
I have downloaded from Micrium Website MUCOS a RTOS.
I used AVR Studio,and try to build the OS.
But unfortunately I encountered this problem:

--->" __root" is compiler directive for IAR compiler and this tells the compiler not to optimize that part of of code qualified by __root

For instance __root int i;
Even if " i " is not used compiler it is not removed.

But when I tried to build it is using GCC compiler.
So I need an equivalent to __root in GNU kit.

Please clarify ths as soon as possible.
Have a nice day
Bye
Sairam

I don't know about gcc, but Microsoft compilers have an optimize pragma.. You might check of gcc has similar pragma. There is no similar pragma for _root that works on individual variables.

You might also try the volatile keyword.

commented: volatile seems like a good match +30
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.