Building a respectable compiler requires basic blocks in order for liveness analysis to be performant. Consider my own Apple compiler:
I previously wrote about typing elliptic fourier series; my Apple compiler is now capable of computing the offsets and also the relevant coefficients.
To compute a 7-day moving average:
As I wrote about previously I am working on a typed array language with the case of elliptic Fourier series as an example.
Compilers are written as a pipeline: in particular, instruction selection and register allocation are different phases. GHC, for instance, uses maximal munch for instruction selection and a variety of register allocators. However, on x86-64 (for instance), register allocation constrains the particular instruction encodings, which affects the cost of some instructions.
prev | next