3 ms·
I have an XMOS dev board sitting in a drawer basically unused since I found I had to use their proprietary extended C dialect. But I understand they may have fi
by cmrdporcupine 7y ago
I have an XMOS dev board sitting in a drawer basically unused since I found I had to use their proprietary extended C dialect. But I understand they may have fixed this since?
- peglasaurus 7y agoI don't know anything about that dialect. What were your experiences? Is your codebase uncompilable using their tools? Would a simple hello world compile? How foreign does a simple blinky program look to a C programmer?
- cmrdporcupine 7y agoTheir "xc" is C with language extensions to support CSP style parallel processing. https://en.wikipedia.org/wiki/XC_(programming_language) https://en.wikipedia.org/wiki/XC_(programming_language)
- tjoff 7y agoYou have to use their XC dialect, but it is mostly C anyway. And you can include reglar h-files to easily link to and build regular C. With provided macros you can have h-files which are using some XC features but still be compatible with both XC and C files (making it easy to wrap XC code and call it from C and vice versa). There is also this that can use XC features from C. https://github.com/xmos/lib_xcore_c https://github.com/xmos/lib_xcore_c But I don't find XC to be bad, and likely a much better starting point than the library above. The compiler is a fork from gcc from 2006 (if I remember correctly) and that shows its age somewhat. The many protections in XC can be a bit tedious as well.
- cmrdporcupine 7y agoI had existing code written in C++. I ran it using GCC on the Parallax Propeller instead. I had no desire to port to XC as I was trying to keep a core of it relatively cross platform. Of course this is just another of my unfinished hobby projects, so :-)