Compilation of trunks and branches