Optimising compiler