Exemplo n.º 1
0
def _do_codegen_user(user, wamr=False):
    print("Running codegen for user {}".format(user))

    binary = find_codegen_func()
    env = {"WASM_VM": "wamr" if wamr else "wavm"}

    run("{} {}".format(binary, user), shell=True, env=env, check=True)
Exemplo n.º 2
0
def codegen(ctx, user, function, wamr=False):
    """
    Generates machine code for the given function
    """
    env = {"WASM_VM": "wamr" if wamr else "wavm"}

    binary = find_codegen_func()
    run("{} {} {}".format(binary, user, function),
        shell=True,
        env=env,
        check=True)
Exemplo n.º 3
0
def _do_codegen_user(user):
    print("Running WAVM codegen for user {}".format(user))

    binary = find_codegen_func()
    env = copy(environ)
    env.update(
        {
            "WASM_VM": "wavm",
            "LD_LIBRARY_PATH": "/usr/local/lib/",
        }
    )

    run("{} {}".format(binary, user), shell=True, env=env, check=True)
Exemplo n.º 4
0
def codegen(ctx, user, function):
    """
    Generates machine code for the given function
    """
    env = copy(environ)
    env.update(
        {
            "LD_LIBRARY_PATH": "/usr/local/lib/",
        }
    )

    binary = find_codegen_func()
    run(
        "{} {} {}".format(binary, user, function),
        shell=True,
        env=env,
        check=True,
    )
Exemplo n.º 5
0
def _do_codegen_user(user):
    print("Running codegen for user {}".format(user))

    binary = find_codegen_func()
    check_output("{} {}".format(binary, user), shell=True)
Exemplo n.º 6
0
def codegen(ctx, user, function):
    """
    Generates machine code for the given function
    """
    binary = find_codegen_func()
    check_output("{} {} {}".format(binary, user, function), shell=True)