Skip to content

Conversation

@sffc
Copy link
Member

@sffc sffc commented Nov 21, 2025

@sffc sffc requested a review from a team as a code owner November 21, 2025 15:34
# Build the WASM library. Explanation of the flags:
# -Cpanic=abort: removes unwind machinery
# -Copt-level=s: tells llvm to optimize for size
# -C link-arg=-zstack-size=${WASM_STACK_SIZE}: the default is too large and contributes to high runtime memory
Copy link
Member

Choose a reason for hiding this comment

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

nit: this is because of compiler bugs, no? 100k is a pretty large stack size, I think we set it to be larger than the default

Copy link
Member

@robertbastian robertbastian left a comment

Choose a reason for hiding this comment

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

the main JS Makefile is in ffi/npm. please add the explanations there and then call out how this file differs (basically the custom linker script)

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.

4 participants