fn vm_print_bin(args: &ArgMatches) {
    let function_name = args.value_of("function").unwrap();
    let file_name = args.value_of("bytecode").unwrap();
    if let Some(_) = args.value_of("architecture") {
        todo!("print-bin arch option")
    }

    let mut module_loader = ModuleLoader::from_module(std_module());
    let id = module_loader.load_module(file_name).unwrap();
    let module = module_loader
        .get_by_id(id)
        .expect("missing module")
        .expect("missing impl");
    let func = module.get_function_by_name(function_name).unwrap();
    let mut state = JITState::default();
    JITEngine::compile(&mut state, &module, func);
    let hex_string = JITEngine::to_hex_string(&mut state, func);
    print!("{}", hex_string);
}
/// Prints a compiled function in binary format.
///
/// The function is specified by the `function` command line argument.
/// The module is specified by the `bytecode` command line argument.
///
/// Arguments: 
/// * `args`: Command line arguments
Prints a compiled function in binary format.
The function is specified by the `function` command line argument.
The module is specified by the `bytecode` command line argument.

`args`: Command line arguments
Prints a compiled function in binary format . The function is specified by the ` function ` command line argument . The module is specified by the ` bytecode ` command line argument . ` args ` : Command line arguments
fn vm_print_bin(args: &ArgMatches) {
    let function_name = args.value_of("function").unwrap();
    let file_name = args.value_of("bytecode").unwrap();
    if let Some(_) = args.value_of("architecture") {
        todo!("print-bin arch option")
    }
    let mut module_loader = ModuleLoader::from_module(std_module());
    let id = module_loader.load_module(file_name).unwrap();
    let module = module_loader
        .get_by_id(id)
        .expect("missing module")
        .expect("missing impl");
    let func = module.get_function_by_name(function_name).unwrap();
    let mut state = JITState::default();
    JITEngine::compile(&mut state, &module, func);
    let hex_string = JITEngine::to_hex_string(&mut state, func);
    print!("{}", hex_string);
}
fn vm_print_bin ( args : & ArgMatches ) { let function_name = args . value_of ( " " ) . unwrap ( ) ; let file_name = args . value_of ( " " ) . unwrap ( ) ; if let Some ( _ ) = args . value_of ( " " ) { todo ! ( " " ) } let mut module_loader = ModuleLoader :: from_module ( std_module ( ) ) ; let id = module_loader . load_module ( file_name ) . unwrap ( ) ; let module = module_loader . get_by_id ( id ) . expect ( " " ) . expect ( " " ) ; let func = module . get_function_by_name ( function_name ) . unwrap ( ) ; let mut state = JITState :: default ( ) ; JITEngine :: compile ( & mut state , & module , func ) ; let hex_string = JITEngine :: to_hex_string ( & mut state , func ) ; print ! ( " " hex_string ) ; }
Prints a compiled function in binary format.
Prints a compiled function in binary format .
args
&ArgMatches
args
&ArgMatches