Better HN
topnewbestaskshowjobs
Log inSign up

someuser0123091

1 karma · joined Mar 16, 2024 (2y ago) · 1 submissions

Submissions

comment 2y ago · link · parent

Does anyone know if there is any research around designing a compiler + language that produces optimal code? Besides superoptimization that is.

Specifically, in what way should a language be designed to aid the compiler in finding the optimal code?

For example for the matrix multiplication, why can't the compiler find the optimal code? Why are BLAS written in assembly for each CPU architecture? Isn't this a question of having a high level CPU spec (how many ports, instruction latency, throughput) and then using a constraint solver to find the optimal code?