stdcore[x] type or labelling?

Technical questions regarding the XTC tools and programming with XMOS.
User avatar
mike
Member++
Posts: 19
Joined: Fri Dec 11, 2009 11:21 am

Post by mike »

lilltroll wrote:
m_y wrote:Assuming a G4...

Code: Select all

#include <platform.h>

core c0 = stdcore[0];
core c1 = stdcore[1];
core c2 = stdcore[2];
core c3 = stdcore[3];

void nothing()
{
}

int main()
{
  par
  {
  on c0: nothing();
  on c1: nothing();
  on c2: nothing();
  on c3: nothing();
  }
  return(0);
}
I tried it on my XDK and it works fine - but, it doesn't seems to be supported by the spell-checker yet. The compiler likes it, but the spell-checker reports Syntax Error.

If this is a "XMOS supported" way to write code, and I do not misunderstand things, it would be nice to add it in the 10.4.1 release.
This is fine, it's just a bug in the syntax checker in the XDE - should get fixed in the next release.

Mike