Skip to content

Site coded in C, using emscirpten for generating JS code and a WASM binary.

Notifications You must be signed in to change notification settings

JetBerri/Website-Combo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Site

I've done this simple site using emscripten

The main.wasm file is a binary fail supoported by every browser.

The js file is not an instruction script trying to recreate C, it has a particular structure for understanding that WASM code.

This way we can get a website coding it only in C.

Run site

For running the site you can just run a http.server using any service. Python can be used:

python3 -m http.server --bind 127.0.0.1 8000

Screenshoots

image

image

Create your own!

You can just create a simple C file:

#include <stdio.h>

int main()
{
  printf("Hello, World!");
  return 0;
}

And run this commands:

emcc main.c -o index.html
emcc main.c -o index.js

If you dont have emcc installed:

sudo apt install emscripten

About

Site coded in C, using emscirpten for generating JS code and a WASM binary.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published