←back to thread

89 points bwidlar | 1 comments | | HN request time: 0.202s | source
Show context
sylware ◴[] No.42156716[source]
Have a look at QBE as it may provide basic optimizations and some significant performant boost: cproc + QBE and I get 70% of gcc 13.2 -O2 speed in my benchmarks, tinycc is 2 times slower than gcc 13.2 -O2 in the same benchmarks (my benchmarks are very basic, but it shows...).

We are talking gcc complexity is grotesque/absurd for those 30%, not to mention this is now brain damaged c++ (one of the biggest mistakes in open source software ever).

I know QBE is for CPUs, but maybe there is something there for GPUs.

replies(1): >>42160142 #
Conscat ◴[] No.42160142[source]
QBE has no support for SIMD last I looked into it, so I don't think it would be appropriate for an SPMD language. https://todo.sr.ht/~mpu/qbe/5

It's common for shader compilers to invent their own IR, like Shadey and Slang IR.

replies(1): >>42163510 #
1. rurban ◴[] No.42163510[source]
That link just says that the maintainer of the fork mpu for hare has no will nor abilities to add full SIMD support. But qbe is still written and maintained by Brian Callahan here: https://c9x.me/compile/