-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Experiment] Emit also WebAssembly in the backend #34
Comments
We've tried this and the LLVM IR output generated using the A few language features could help a lot in making this better:
|
For anyone interested:
|
There's a |
That is going to be easy, LLVM has a PrintToFile method, existing even in 3.7. /**
* Print a representation of a module to a file. The ErrorMessage needs to be
* disposed with LLVMDisposeMessage. Returns 0 on success, 1 otherwise.
*
* @see Module::print()
*/
LLVMBool LLVMPrintModuleToFile(LLVMModuleRef M, const char *Filename,
char **ErrorMessage); |
Think on the benefits of adding emitting web assembly from Refu.
Think if it makes sense to also emit WebAssembly code for web development.
It would be quite easy to do since LLVM can directly translate to Web Assembly
The text was updated successfully, but these errors were encountered: