Languages Features Creators CSV Resources Challenges Add Language
GitHub icon


XC - Programming language

< >

XC, aka XMOS community, is a programming language created in 2005.

#923on PLDB 18Years Old 375Users
0Books 0Papers 342Repos

In computers, XC is a programming language for real-time embedded parallel processors, targeted at the XMOS XCore processor architecture.XC is an imperative language, based on the features for parallelism and communication in occam, and the syntax and sequential features of C. It provides primitive features that correspond to the various architectural resources provided, namely: channel ends, locks, ports and timers. In combination with XCore processors, XC is used to build embedded systems with levels of I/O, real-time performance and computational ability usually attributed to field-programmable gate arrays (FPGAs) or application-specific integrated circuit (ASIC) devices.. Read more on Wikipedia...

Example from Linguist:
int main() { int x; chan c; par { c <: 0; c :> x; } return x; }
Example from Wikipedia:
#include <stdio.h> #include <platform.h> void hello(int id, chanend cin, chanend cout){ if (id > 0) cin :> int; printf("Hello from core %d!", id); if (id < 3) cout <: 1; } int main(void) { chan c[3]; par (int i=0; i<4; i++) on tile[i] : hello(i, c[i], c[(i+1)%4]); return 0; }
loomscript.html 路 xc.html 路 hedy.html

View source

- Build the next great programming language Search Day 213 About Blog Acknowledgements Traffic Traffic Today GitHub