PS compiler