{"action":"created","issue":{"url":"https://api.github.com/repos/WebAssembly/build-suite/issues/1","labels_url":"https://api.github.com/repos/WebAssembly/build-suite/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/WebAssembly/build-suite/issues/1/comments","events_url":"https://api.github.com/repos/WebAssembly/build-suite/issues/1/events","html_url":"https://github.com/WebAssembly/build-suite/issues/1","id":118102634,"number":1,"title":"Format for emscripten outputs","user":{"login":"kripken","id":173661,"avatar_url":"https://avatars.githubusercontent.com/u/173661?v=3","gravatar_id":"","url":"https://api.github.com/users/kripken","html_url":"https://github.com/kripken","followers_url":"https://api.github.com/users/kripken/followers","following_url":"https://api.github.com/users/kripken/following{/other_user}","gists_url":"https://api.github.com/users/kripken/gists{/gist_id}","starred_url":"https://api.github.com/users/kripken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kripken/subscriptions","organizations_url":"https://api.github.com/users/kripken/orgs","repos_url":"https://api.github.com/users/kripken/repos","events_url":"https://api.github.com/users/kripken/events{/privacy}","received_events_url":"https://api.github.com/users/kripken/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-20T18:49:39Z","updated_at":"2015-11-20T20:40:29Z","closed_at":null,"body":"@titzer suggested that I upload builds from the emscripten test suite here, now that emscripten can output sexprs, so we would have full tests including libc usage, complete apps like python, freetype, etc. The current output format that I have been working on to get passing the test suite looks like this:\r\n\r\n1. The main JS file contains, as usual, the runtime support code, stuff that will be imported into the wasm module, the code that calls into the wasm module, etc. It doesn't contain the compiled code itself though.\r\n2. An asm.js file on the side, with the compiled code.\r\n3. The main JS file also contains the binaryen wasm.js polyfill. This will load the asm.js file, parse it into a wasm sexpr, then set up an interpreter for that wasm, which it hooks up to the surrounding JS environment.\r\n\r\nFor more direct testing of sexprs in this repo, I was thinking to upload builds that replace the asm.js with the sexpr translation (just by running the binaryen asm2wasm tool on them). So we would have\r\n\r\n1. Main JS file\r\n2. Sexpr file with the compiled code.\r\n3. As in #3 above, connection code/polyfill/etc.\r\n\r\nI'm unsure what we want in #3. It seems like we should load the sexpr, then somehow check \"is there native wasm support here\". If there is, then give that native support the sexpr (or would it need to be binary?) and get a wasm module, or if not, then set up the interpreter as before, also receiving (what looks like) a wasm module.\r\n\r\ncc @lukewagner @kg \r\n"},"comment":{"url":"https://api.github.com/repos/WebAssembly/build-suite/issues/comments/158518351","html_url":"https://github.com/WebAssembly/build-suite/issues/1#issuecomment-158518351","issue_url":"https://api.github.com/repos/WebAssembly/build-suite/issues/1","id":158518351,"user":{"login":"kg","id":198130,"avatar_url":"https://avatars.githubusercontent.com/u/198130?v=3","gravatar_id":"","url":"https://api.github.com/users/kg","html_url":"https://github.com/kg","followers_url":"https://api.github.com/users/kg/followers","following_url":"https://api.github.com/users/kg/following{/other_user}","gists_url":"https://api.github.com/users/kg/gists{/gist_id}","starred_url":"https://api.github.com/users/kg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kg/subscriptions","organizations_url":"https://api.github.com/users/kg/orgs","repos_url":"https://api.github.com/users/kg/repos","events_url":"https://api.github.com/users/kg/events{/privacy}","received_events_url":"https://api.github.com/users/kg/received_events","type":"User","site_admin":false},"created_at":"2015-11-20T20:40:29Z","updated_at":"2015-11-20T20:40:29Z","body":"I think I'm missing too much context to chime in on this question. Maybe I will understand it after I reread it a few more times. I don't know what binaryen actually is or what kind of testing you're doing, and it's not clear to me what wasm.js is or how it interacts with the wasm interpreter."}}