Skip to content
This repository was archived by the owner on Dec 18, 2023. It is now read-only.

Set default stack size + static data size to 640KB#4

Closed
guybedford wants to merge 1 commit into
wasdk:masterfrom
guybedford:patch-1
Closed

Set default stack size + static data size to 640KB#4
guybedford wants to merge 1 commit into
wasdk:masterfrom
guybedford:patch-1

Conversation

@guybedford

Copy link
Copy Markdown

When using WASM Explorer or WASM Fiddle, any use of the stack will cause a memory out of bounds exception.

By passing the -s option to s2wasm we can initialize the stack value to the top of the initial memory.

This PR sets the total stack + static data size to 640KB (which seems like a sensible default). Ideally these should be parameters into the service though to tune requirements. Also it should be possible to inspect the static data size of a compilation and ensure that the stack size is always a constant stack size value regardless of the static data size, which would be an even more sensible default.

This at now will at least allow experimentation with stack things, as this service is hopefully intended for.

@guybedford guybedford changed the title Set default stack size + heap size to 640KB Set default stack size + static data size to 640KB May 22, 2017
@guybedford

Copy link
Copy Markdown
Author

Moved to #5.

@guybedford guybedford closed this May 22, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant