logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

futhark-wasm - compile Futhark to WebAssembly

Description

futharkwasm translates a Futhark program to sequential WebAssembly code by first generating C as futharkc,  and  then  using  Emscripten  (emcc).   This  produces a .js file that allows the compiled code to be
       invoked from JavaScript.  Executables implement the Futhark server protocol and can be run with Node.js.

Environment Variables

CFLAGS
          Space-separated list of options passed to emcc.  Defaults to -O3-std=c99 if unset.

       EMCFLAGS
          Space-separated list of options passed to emcc.

Executable Options

       The following options are accepted by executables generated by futharkwasm.

       -h, --help
              Print help text to standard output and exit.

       -D, --debugging
              Perform possibly expensive internal correctness checks and verbose logging.  Implies -L.

       -L, --log
              Print various low-overhead logging information to stderr while running.

Name

       futhark-wasm - compile Futhark to WebAssembly

Options

       Accepts the same options as futhark-c.

See Also

futhark-c, futhark-wasm-multicore

Synopsis

       futhark wasm [options…] <program.fut>

See Also