Generating CPU host stub