Welcome, Guest. Please login or register.

Author Topic: W2C2 compiles WebAssembly to C  (Read 1145 times)

Description: A WebAssembly transpiler

0 Members and 1 Guest are viewing this topic.

Offline SamuraiCrowTopic starter

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 2280
  • Country: us
  • Gender: Male
W2C2 compiles WebAssembly to C
« on: January 15, 2023, 07:43:46 PM »
Hi all!

You probably haven't heard from me for a while because I've been working on W2C2 pull requests on GitHub using my freshly installed Haiku Beta 4 OS.  As I've been looking at the project and examples, I see that single-threaded OSs are supported still.  Also, I've noticed that native function calls can be used if declared with the proper extern directives in place of the pragma files.  Of course, making such a thing work on an Amiga would require the use of the Amiga.lib stubs at link time but even more amazingly, if the WASI runtime got ported, cross-compiled WebAssembly like Python 3.11 projects could be ported easily.

That's something to think about.  The link to W2C2 is at https://github.com/turbolent/w2c2 if you're interested.