Skip to contentSkip to content
Verified credentials. On-chain. Forever.Learn more
Cover image for Compile a Subset of C to WebAssembly
Code

Compile a Subset of C to WebAssembly

FreeVerified credential4 weeksAdvanced

Overview

What this challenge is about.

Define a documented C subset: int and bool types, locals, if/else, while, function calls, return. Build a compiler in any host language (TypeScript or Rust preferred) that produces a valid .wasm module per source file. Target the WebAssembly 1.0 binary format directly — no LLVM. Provide 5 example scripts (provided as pseudocode) covering: arithmetic, control flow, recursive Fibonacci, an array sum, and a stub level-logic update function. Each must compile and run inside the studio's existing WASM host (stub provided). Deliver the compiler, the 5 example .wasm outputs, and a 4-page design document.

CredentialBlockchain-anchored
ShareableLinkedIn-ready
LanguageEnglish
PaceSelf-paced

The Brief

What you'll do, and what you'll demonstrate.

Build a working compiler from a C-like subset to WebAssembly 1.0 binaries that runs in a game studio's existing WASM host.

Earning criteria — what you'll demonstrate

  • Generate WebAssembly binary format from an AST
  • Map source-level control flow to WASM structured control
  • Design a language subset for a specific embedding use case
  • Coordinate front-end and back-end work across a small compiler team

Program Fit

Where this fits in your program.

Sharpens the same skills your degree expects you to demonstrate.

Skills

Skills you'll demonstrate.

Each one shows up on your verified credential.

Careers

Roles this prepares you for.

Real titles. Real skill bridges. Pick the one closest to your trajectory.

Career mappings coming soon.

One more thing

You can put a credential on your CV by Friday.