-
Notifications
You must be signed in to change notification settings - Fork 3.5k
-O0 Hello world working with MINIMAL_RUNTIME. #10056
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
-O0 Hello world working with MINIMAL_RUNTIME. #10056
Conversation
kripken
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good to see this!
| for e in exports: | ||
| receiving.append('var %(mangled)s = Module["%(mangled)s"] = asm["%(e)s"];' % {'mangled': asmjs_mangle(e), 'e': e}) | ||
| if shared.Settings.DECLARE_ASM_MODULE_EXPORTS: | ||
| if shared.Settings.WASM and shared.Settings.MINIMAL_RUNTIME: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why does wasm2js output differ from wasm output here? in general in the wasm backend the js/wasm paths are much more similar than in fastcomp (wasm2js literally polyfills the WebAssembly APIs, and everything should be identical except for that), so I was hoping we would not have differences here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know yet. I have not yet tried against wasm2js. I just put this like this to follow the fastcomp route, and did not go too far making modifications to keep the amount to review small for each PR.
2886b50 to
5f6e9c2
Compare
kripken
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair enough, lgtm with that settings_internal.js comment addressed.
|
Check - updated to address review and pass tests, I'll land this once tests come through, and proceed to next set of features. |
f42831e to
0d5720b
Compare
| if (array.length > 0) { | ||
| return "['" + array.join("','") + "']"; | ||
| } else { | ||
| return []; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't this be a string too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That would certainly help the code to work..
* -O0 Hello world working with MINIMAL_RUNTIME.
* -O0 Hello world working with MINIMAL_RUNTIME.
This makes a first step towards getting MINIMAL_RUNTIME working with wasm backend.