-
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
Merged
juj
merged 8 commits into
emscripten-core:incoming
from
juj:wasm_backend_minimal_runtime_hello_world
Dec 19, 2019
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
b57bbd2
-O0 Hello world working with MINIMAL_RUNTIME.
juj d362e15
Fix MINIMAL_RUNTIME on fastcomp
juj 5f6e9c2
Fix non-MINIMAL_RUNTIME asmjs name mangling when building with DECLAR…
juj b4b54bc
Address review. Fix closured build of -s DECLARE_ASM_MODULE_EXPORTS=0…
juj 2bff254
Fix metaDCE for DECLARE_ASM_MODULE_EXPORTS=0
juj 99d7f4d
Fix flake and MINIMAL_RUNTIME build
juj 0d5720b
Fix wasm2.test_no_declare_asm_module_exports
juj f5a8a9a
Fix fastcomp MINIMAL_RUNTIME
juj File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1631,3 +1631,12 @@ function makeRemovedFSAssert(fsName) { | |
| if (SYSTEM_JS_LIBRARIES.indexOf('library_' + lower + '.js') >= 0) return ''; | ||
| return "var " + fsName + " = '" + fsName + " is no longer included by default; build with -l" + lower + ".js';"; | ||
| } | ||
|
|
||
| // Given an array of elements [elem1,elem2,elem3], returns a string "['elem1','elem2','elem3']" | ||
| function buildStringArray(array) { | ||
| if (array.length > 0) { | ||
| return "['" + array.join("','") + "']"; | ||
| } else { | ||
| return []; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. shouldn't this be a string too?
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That would certainly help the code to work.. |
||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.