r/ProgrammingLanguages • u/mttd • Jul 01 '26
The Expensive Fictions of Low-Level Programming Languages
https://stng.substack.com/p/the-expensive-fictions-of-low-level
19
Upvotes
r/ProgrammingLanguages • u/mttd • Jul 01 '26
View all comments
Show parent comment
7
u/shponglespore Jul 01 '26 edited Jul 01 '26
I have had the dubious privilege of working on a C compiler designed specifically for a SIMD architecture. While the language was technically just plain C, it had to be littered with so many specialized pragmas to get good performance that only experts could write it, and it was buggy as hell.
The approach they used was to put pragmas on arrays to specify SIMD memory layouts, and then to recognize access patterns in loops over those arrays as equivalent to SIMD operations.