End-to-end compilation