You can call C methods in compiled emscripten code manually,

http://kripken.github.io/emscripten-site/docs/porting/connecting_cpp_and_javascript/Interacting-with-code.html?highlight=interacting

If you want to run the entire program from scratch instead of calling a
specific method, you can put the compiled code in a JS function, then when
it is called, you get a new instance.

- Alon


On Sun, Nov 2, 2014 at 7:26 AM, Steffen Köhler <
[email protected]> wrote:

> Hello
>
> maybe it's not possible, but it's worth a try:
>
> Simply said, I would like to have a textbox. When the user presses a
> "Compile" button, the content of the textbox shall be transferred into
> emscriptens file system and the program which was compiled into emscripten
> shall be started. It compiles the file, writes the result into another file
> and finishes. This shall be recognized by the emscripten VM and finally a
> download of the created file shall be started.
>
> I went through several documents and sources already, but I couldn't find
> any hint if and how it's possible to start the emschripten "program" on
> request, detecting its end and writing in the file system before and after.
>
> It this possible at all and do there any howtos or sources exist?
>
>
> Many thanks!
>
> Steffen
>
>  --
> 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 [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to