Skip to content

Conversation

@fitzgen
Copy link
Collaborator

@fitzgen fitzgen commented Mar 4, 2025

Support for custom page sizes was added via the --page-size=N CLI flag in wasm-ld.

Additionally, wasm-ld defines a __wasm_first_page_end symbol, whose address is the end of the first page, a.k.a. the start of the second page, a.k.a. is the Wasm page size. This allows source files to be written in a page-size-agnostic manner, and for object files to be re-linked with different Wasm page sizes, without needing to recompile the source.

Support for custom page sizes was added via the `--page-size=N` CLI flag in
`wasm-ld`.

Additionally, it defines a `__wasm_first_page_end` symbol, whose address is the
end of the first page, a.k.a. the start of the second page, a.k.a. is the Wasm
page size. This allows source files to be written in a page-size-agnostic
manner, and for object files to be re-linked with different Wasm page sizes,
without needing to recompile the source.
@fitzgen fitzgen merged commit aa7de7b into main Mar 4, 2025
@fitzgen fitzgen deleted the wasm-ld-impl branch March 4, 2025 17:56
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