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

Supporting export #58

Merged
merged 3 commits into from
Oct 14, 2024
Merged

Supporting export #58

merged 3 commits into from
Oct 14, 2024

Conversation

ahuoguo
Copy link
Contributor

@ahuoguo ahuoguo commented Oct 13, 2024

Now the main function is specified by the function name given by export. This makes comparing with other wasm runtimes easier. (other wasm runtimes often default (export "main" (func ...)) to be the entry point).

This also makes testing easier since we can just write an exported function, and the unlabel the entire file.

Note that export can only take in numbers for now, which is the same as start.

I also edited gen-wat-parser.sh a bit since OSX sed is a bit different.

PS: My formatter also formatted on MiniWasm.scala

@ahuoguo ahuoguo marked this pull request as ready for review October 14, 2024 03:16
@ahuoguo ahuoguo requested a review from Kraks October 14, 2024 03:16
@Kraks
Copy link
Member

Kraks commented Oct 14, 2024

Thanks for the PR -- looks good to me! Just added some minor comments

@ahuoguo ahuoguo merged commit f295830 into main Oct 14, 2024
1 check passed
@ahuoguo ahuoguo deleted the export branch October 14, 2024 21:03
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