Programming problem

Technical questions regarding the XTC tools and programming with XMOS.
Post Reply
mark-jack
Member++
Posts: 28
Joined: Fri Oct 13, 2017 4:11 am

Programming problem

Post by mark-jack »

xmos development environment is not defined class? Or development environment is not a keyword class in this category?If not, anything similar to the class can be used instead of a class?Thank you very much!


robertxmos
XCore Addict
Posts: 169
Joined: Fri Oct 23, 2015 10:23 am

Post by robertxmos »

Hi mark-jack

You can use C, C++ or XC (C & C++ don't have native hardware features).

The XC language is more like C than C++.
You have struct and union.
You don't have function pointers.
BUT you do have 'interface'....
These are a bit like base classes viz pure virtual functions.
HOWEVER the intent is to create flexible server-client connections between processes!
mark-jack
Member++
Posts: 28
Joined: Fri Oct 13, 2017 4:11 am

Post by mark-jack »

robertxmos wrote:Hi mark-jack

You can use C, C++ or XC (C & C++ don't have native hardware features).

The XC language is more like C than C++.
You have struct and union.
You don't have function pointers.
BUT you do have 'interface'....
These are a bit like base classes viz pure virtual functions.
HOWEVER the intent is to create flexible server-client connections between processes!
Ok,thank you very much.
Post Reply