Skip to content
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

Add a C source for for test/lld/em_asm_O0 #3045

Merged
merged 2 commits into from
Aug 17, 2020
Merged

Add a C source for for test/lld/em_asm_O0 #3045

merged 2 commits into from
Aug 17, 2020

Conversation

kripken
Copy link
Member

@kripken kripken commented Aug 15, 2020

That had just a wat file, with no C. This adds a C file as best I
can guess - looks pretty close - and updates all the lld tests with
scripts/test/generate_lld_tests.py and ./auto_update_tests.py lld

As the diff shows, the handwritten wat was very different than what
emcc+lld emit now. I think we must have switches EM_ASMs to
be variadic at some point? That is what they currently are, and
would explain the diff.

See the discussion that led to this in #3044

@kripken kripken requested a review from sbc100 August 15, 2020 00:51
Copy link
Member

@sbc100 sbc100 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Thanks for doing that.

@@ -0,0 +1,7 @@
#include <emscripten.h>

int main() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can avoid the __original_main thing by adding argc and argv here.. not important at all but would remove of of the differences.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, that helps. I also sorted them differently which seems to help remove a little more of the diff.

@kripken kripken merged commit 8139c9d into master Aug 17, 2020
@kripken kripken deleted the lld branch August 17, 2020 23:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants