Show HN: Compile the same source for GPUs and CPUs
The compiler for the language xc, developed with Claude's help, has been released as v1.0.1, generating both CPU and GPU code from standard loops.
Key points
- •The xcc compiler for the xc language supports Linux, macOS, and Windows, released as v1.0.1 after 6 months of development
- •It determines parallel execution potential from ordinary loop descriptions and outputs multi-core CPU versions and GPU kernels
- •GPU kernels are generated by xcc itself without requiring an SDK installation, supporting MSL, PTX, SPIR-V, and WGSL