Any WASM 2/3 writer library?

Hydroper

New member
Joined
Nov 3, 2025
Messages
3
Programming Experience
10+
I've only found libraries for writing WASM 1.x. I need reference types and still custom sections.
 
The usual approach is for C# to be compiled to IL, and then that IL is executed by the .NET WASM bootstrapper on the client side web browser. It sounds like what you want is for the C# to be compiled directly to WASM, or for the IL to be trans-piled into WASM, is that correct?

Or are you really looking for a library that lets you write the WASM op-codes directly? No need to compile any of your own C# code?
 
*** removed unnecessary quote ***

I'm really looking for a library to use in my own compiler for my own language.
 
Last edited by a moderator:
And I assume the search for a pre-existing library is to avoid re-inventing the wheel assuming someone else has already invented that wheel...
 
And I assume the search for a pre-existing library is to avoid re-inventing the wheel assuming someone else has already invented that wheel...
Yeah, because you've to test the library once you make it X_X

I've only found these libraries, but they don't support reference types (because they are for WASM 1.x)


 
Sounds like an interesting project whatever you are working on that has a custom language that needs to compiled into WASM.

As a complete outsider, the way I would approach it is to take advantage of Emscripten which take LLVM output and makes it into WASM, and then look at SharpLang or similar which takes C# and drives LLVM. Yeah, I know instead of just having one problem, now I have two problems with potentially large learning curves.

Hopefully someone else with much better Google-fu can make a suggestion for how to take a custom language and have it compiled into WASM.
 
Back
Top Bottom