Command Palette

Search for a command to run...

clang package icon
clang/clang
Public
wasmer run clang/clang

Clang

This package enables running clang natively using only WebAssembly and Wasmer.

Let's start creating a example.c file, so we can compile it to WebAssembly:

#include <stdio.h>

int main() {
    printf("Hello, World!
");
    return 0;
}
wasmer run clang/clang --dir=. -- example.c -o example.wasm

And last, but not least... run it with Wasmer!

wasmer run example.wasm

No description found.

More packages
Clang is a compiler front end for the C, C++, Objective-C and Objective-C++ programming languages
Ben Taylor