Generate bin file