> Writing compiler backend in a declarative manner is something I've been toying with for a while now, and I don't think it's realistically possible with current technology.
Functional style isn't too bad. Maximal munch lines up with pattern matching, then linear scan is easy enough if you don't need gcc-tier results.
GHC has bits of its backend that are shared across architectures, maybe I should have a look at that...
Functional style isn't too bad. Maximal munch lines up with pattern matching, then linear scan is easy enough if you don't need gcc-tier results.
GHC has bits of its backend that are shared across architectures, maybe I should have a look at that...