pub fn bytecode_generation(
    output_path: Option<String>,
    tid: u64,
    rng: StdRng,
    receiver: Receiver<CompiledModule>,
    stats: Sender<Status>
)