xTimeComposer-13: global unsafe pointer to interface?

Technical questions regarding the XTC tools and programming with XMOS.
jerryXCORE
Experienced Member
Posts: 65
Joined: Tue Apr 30, 2013 10:41 pm

xTimeComposer-13: global unsafe pointer to interface?

Post by jerryXCORE »

I compiled the example of "simple web server" in xTimeComposer 14 successfully!
But I failed to compile the same program in xTimeComposer 13.

Then I found the error comes from global unsafe pointer to interface, for example

Code: Select all

extern client mii_if * unsafe xtcp_i_mii;

void xtcp(chanend xtcp[n], size_t n,   client mii_if ?i_mii,        ...)
{
   ....
    unsafe {      xtcp_i_mii = (client mii_if * unsafe) (&i_mii);    }  //This cause compiling error!!!
    ...
  }
And the error message from xTimeComposer-13:

Code: Select all

...
xcc1: internal compiler error
Failed in z:/buildslave/swnb/tools/win764_nightly_ent13/build/sb/tools_xcc1_c_llvm/FrontEnd/Checker/check_chan_usage.c, line 757
	state->currentInterfaceEnd != (-1)
For bug reporting instructions, please see:
...
Any hint to make it work? or just don't use global unsafe pointer to interface in xTimeComposer 13?