A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.fastly.com/blog/announcing-lucet-fastly-native-webassembly-compiler-runtime below:

Lucet Takes WebAssembly Beyond the Browser | Fastly

How we built Lucet A quick demo of Lucet

✔ Copied!

$ git clone --recurse-submodules https://github.com/fastly/lucet

✔ Copied!

$ cd lucet  
$ source devenv_setenv.sh

✔ Copied!

$ mkdir demo
$ cd demo
$ cat > hello.c <<EOT

#include <stdio.h>
int main(int argc, char* argv[])
{
    if (argc > 1) {
            printf("Hello from Lucet, %s!\n", argv[1]);
    } else {
            puts("Hello, world!");
    }
    return 0;
}
EOT
$ wasm32-unknown-wasi-clang hello.c -o hello.wasm

✔ Copied!

$ lucetc-wasi hello.wasm -o hello.so

✔ Copied!

$ lucet-wasi hello.so  
Hello, world!  
$ lucet-wasi hello.so world  
Hello from Lucet, world!
Beyond the edge cloud

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.3