This is not trivial. Contrary to all other ports, this requires a major rewrite of all essential components. The question even is: can it be done within the current framework? 4tH does all I/O (whether from the keyboard, the screen, a pipe or a file through the very same primitives. Since all I/O within NaCl is protected AND I/O to the screen is entirely separated from all other I/O this is questionable.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've tried emscripten on a recent Ubuntu - and I was unable to get it going, neither an old, validated package nor from source. IMHO it relies too much on a delicate balance between certain versions of its components, making it very fragile. So it might be a while before I give it another try.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This is not trivial. Contrary to all other ports, this requires a major rewrite of all essential components. The question even is: can it be done within the current framework? 4tH does all I/O (whether from the keyboard, the screen, a pipe or a file through the very same primitives. Since all I/O within NaCl is protected AND I/O to the screen is entirely separated from all other I/O this is questionable.
I've tried emscripten on a recent Ubuntu - and I was unable to get it going, neither an old, validated package nor from source. IMHO it relies too much on a delicate balance between certain versions of its components, making it very fragile. So it might be a while before I give it another try.