Search found 11 matches

by gcore
Thu Jul 12, 2018 11:43 pm
Forum: Development Tools and Programming
Topic: Guards and Guarded
Replies: 2
Views: 5117

Re: Guards and Guarded

I’ve had an answer from XMOS. The [[independent_guard]] attribute actually has no effect on the execution of the code, but allows the compiler to spot a potential situation where you have added a guarded statement when you don’t intend to. There is a recommendation that it is removed in future relea...
by gcore
Tue Jul 03, 2018 6:38 am
Forum: Development Tools and Programming
Topic: Guards and Guarded
Replies: 2
Views: 5117

Re: Guards and Guarded

I too would like to understand what [[independent_guard]] does. Could anyone from XMOS provide some documentation on the keyword and its intended use case?
by gcore
Wed Jan 31, 2018 12:01 am
Forum: Development Tools and Programming
Topic: How to redirect stdio?
Replies: 1
Views: 2558

Re: How to redirect stdio?

I would like to ask the same question. I would like to leverage the infrastructure that allows any core to print to the debug console at the expense of one channel per tile, and rather than send all the messages out via xScope/xConnect to the xTimeComposer console, send them to a task of my choosing...
by gcore
Wed Jul 19, 2017 4:10 am
Forum: Development Tools and Programming
Topic: Passing Incompatible Structs Between C and XC
Replies: 1
Views: 3569

Passing Incompatible Structs Between C and XC

I would like to be able to pass a struct by reference from XC, through some C function calls, back to an XC function, where it would be usable as if it had never been passed via C. The particular struct I would like to pass is shown here. #include <xccompat.h> #ifndef __XC__ #define movable #endif t...
by gcore
Mon Jun 26, 2017 12:47 am
Forum: Development Tools and Programming
Topic: Bidirectional Spontaneous Event Design Pattern
Replies: 2
Views: 4338

Re: Bidirectional Spontaneous Event Design Pattern

In this pattern there is one messaging master task and multiple worker tasks. The messaging master exists only to act as a "post office", with the rest of the work being perfomed in the worker tasks. This allows worker tasks to communicate ad-hoc with each other without requiring separate ...
by gcore
Wed Jun 14, 2017 12:30 am
Forum: Development Tools and Programming
Topic: packed structure in xc
Replies: 7
Views: 7798

Re: packed structure in xc

Packed structures would be helpful for me too, for the same reason: being able to represent data coming from outside the system.
by gcore
Fri May 26, 2017 7:55 am
Forum: Development Tools and Programming
Topic: Uninitialised Variables, Select, Optimisation
Replies: 2
Views: 3313

Re: Uninitialised Variables, Select, Optimisation

I should mention that I'm at xTIMEcomposer version 14.2.4.
by gcore
Fri May 26, 2017 7:53 am
Forum: Development Tools and Programming
Topic: Uninitialised Variables, Select, Optimisation
Replies: 2
Views: 3313

Uninitialised Variables, Select, Optimisation

I've encountered some interesting behaviour with uninitialised variables when they are only used within select, and when optimisation is enabled in the compiler. #include <syscall.h> #include <platform.h> #include <xs1.h> #include <xclib.h> #include <print.h> #include "debug_print.h" // Ch...
by gcore
Thu May 18, 2017 7:40 am
Forum: Development Tools and Programming
Topic: Bidirectional Spontaneous Event Design Pattern
Replies: 2
Views: 4338

Bidirectional Spontaneous Event Design Pattern

Hi all, I'm trying to design a Bidirectional Spontaneous Event Design Pattern where the main application would create an array of channels, pass all of them to one task that would be the Message Master, and the other end of each channel to a respective Task. The tasks would each identify themselves ...
by gcore
Wed Dec 14, 2016 4:15 am
Forum: XMOS Devices
Topic: XScope on port other than Tile 0, XL0
Replies: 2
Views: 10499

Re: XScope on port other than Tile 0, XL0

Thanks Redeye, that is indeed all that is required. I had tried that already, but was being misled due to needing to also power the xtag device off and back on before the change takes effect.