Switched compiler