Compiler optimisation for due board