Joint compilation