Channel pause on streaming channel

Technical questions regarding the XTC tools and programming with XMOS.
User avatar
segher
XCore Expert
Posts: 844
Joined: Sun Jul 11, 2010 1:31 am

Post by segher »

Ross wrote:
segher wrote:Ross: It seems you are saying that if you want to do things
just a little bit different than XC normally does, you should
give up on XC completely and use the C-style interfaces?

I think I am hearing wrong.
In a way, yes. If you declare a channel as streaming the tools are going to assume (and check) that that there are enough free routes and try and look after you. You are invalidating these checks by sending PAUSE/END tokens - this is the reasoning behind the warning/deprecation.
But there will only be *more* free routes -- code that checks out
fine without the PAUSE will always work with it. If it's too hard
to analyse with the PAUSE, just tell the user that, it's advanced
usage right :-)
As I said, this is likely to be changed to a standard warning (with a reasonable explanation I assume) rather than a deprecation warning.
I am very happy about that. Faith in humanity restored.
Using inline asm is just going to bypass these checks, so using soutct() etc is preferable in my opinion.
Yes exactly :-)