This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Why doesn't Eclipse for DS-5 Indexer detects the "__asm" keyword and armcc compiler predefined macros?

Using Eclispe for DS-5 and compiler version 5.05, I get a problem in editing my project source files in the Eclipse Editor. It happens that the Indexer does not recognise the compiler's predefined macros, like "__arm__". This causes numerous false error indications in my editor views. Obviously, the project builds just fine, as the compiler takes the correct decisions based on the predefined macros. It is just that the annotation in the editor tabs is incorrect.

Similarly,another problem I encountered is with the Editor not recognizing the "__asm" keyword, marking a function af an inline assembly one. I get a syntax error indication on my code lines. However, sinec this is a leggit keyword, the code compiles just fine.

How can I configure Eclispe to "understand" the "__asm" keyword and the predefined macros?

  • This should be fixed in the more recent releases of DS-5 (5.20, 5.21 etc). Which version are you using?

    Hold that thought... will investigate to find out if the defect was fixed.

  • An update to the question: I found out that the problem with the "__asm" keyword exists when the line is a pure declaration line. If I add a "{}" after the declaration, making it a definition, then there is no error indicated.

    BTW, I am using DS-5 v5.20 w/ armcc 5.05