Hi!

I'm experimenting a little with wasm for a llvm-based compiler I'm working 
on - https://github.com/arnetheduck/nlvm - for the Nim language. 

Nim typically is compiled to C and then the C compiler takes over meaning 
that it's fairly straightforward get it to compile with emcc to wasm 
instead. In `nlvm`, Nim is compiled straight to llvm IR and consequently, 
nlvm is able to output wasm code as well.

The next step that I think would make sense to get the Nim code to run in a 
browser would be to use the emscripten runtime, but from what I can tell, 
when emcc runs it customizes the runtime for the specific case. 

How does that work? IFor example, is there some tooling in emcc that I can 
give an llvm IR file to (which imports various C functions like 
clang-compiled C code would), and have emcc output the corresponding 
html/js/wasm files?

Thanks!

Jacek

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to emscripten-discuss+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/emscripten-discuss/e3c2ada5-f2fa-4ccf-8558-ca30fde4e656%40googlegroups.com.

Reply via email to