compile basic codes.