compile stub