aboutsummaryrefslogtreecommitdiff
path: root/src/compiler_funcs.html
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler_funcs.html')
-rw-r--r--src/compiler_funcs.html28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/compiler_funcs.html b/src/compiler_funcs.html
new file mode 100644
index 00000000..a769955b
--- /dev/null
+++ b/src/compiler_funcs.html
@@ -0,0 +1,28 @@
+<html>
+<body>
+<h2>Run the emscripten compiler in a web page, just for laughs</h2>
+Open the web console to see stderr output
+<hr>
+<pre id="output"></pre>
+<script>
+ arguments = ['tmp/emscripten_temp/tmpgo4sBT.txt', 'tmp/emscripten_temp/tmph9FP9W.func_0.ll', 'funcs', 'tmp/emscripten_temp/tmp0Aj1Vk.json']; // copy from emscripten.py output
+
+ var outputElement = document.getElementById('output');
+ print = function(x) {
+ outputElement.innerHTML += 'output hidden, profiling mode';
+ print = function(){};
+ //outputElement.innerHTML += x;
+ };
+
+ // For generated code
+ var Module = {
+ print: function(x) {
+ throw 'what?'
+ }
+ };
+</script>
+<script src="compiler.js">
+</script>
+</body>
+</html>
+