You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I was curious if it is possible to execute a simple C-file with your demo, but I could not find any way ... If it is possible, could you pass me a little javascript snippet how to interpret a C file with tcc in the browser?
Regards,
André
The text was updated successfully, but these errors were encountered:
Hi @andre-dietrich, this was just a proof of concept. To actually make use of this, tcc would need a WebAssembly backend (or x86 to WebAssembly converter or something). I have not seen such fork yet (I would be a bit interested aswell). Till now, I can just recommend you to use emscripten. If you want to dynamically compile C in the browser, just use e.g. AJAX and return the WebAssembly ArrayBuffer full of assembly instructions and execute it.
Hi, I was curious if it is possible to execute a simple C-file with your demo, but I could not find any way ... If it is possible, could you pass me a little javascript snippet how to interpret a C file with tcc in the browser?
Regards,
André
The text was updated successfully, but these errors were encountered: