commit | 9b24d8d46180241922106a8ea7bda820db3a82c1 | [log] [tgz] |
---|---|---|
author | SingleAccretion <62474226+SingleAccretion@users.noreply.github.com> | Fri Dec 15 21:16:38 2023 +0300 |
committer | Copybara-Service <copybara-worker@google.com> | Fri Dec 15 10:18:03 2023 -0800 |
tree | c5c05a9093337278c98dc0468277e2e85793b9e3 | |
parent | ebf63094c2dc4284ceb90347a1963c20e6190c27 [diff] |
[lld][WebAssembly] Add an `--initial-heap` option (#75594) It is beneficial to preallocate a certain number of pages in the linear memory (i. e. use the "minimum" field of WASM memories) so that fewer "memory.grow"s are needed at startup. So far, the way to do that has been to pass the "--initial-memory" option to the linker. It works, but has the very significant downside of requiring the user to know the size of static data beforehand, as it must not exceed the number of bytes passed-in as "--initial-memory". The new "--initial-heap" option avoids this downside by simply appending the specified number of pages to static data (and stack), regardless of how large they already are. Ref: https://github.com/emscripten-core/emscripten/issues/20888. GitOrigin-RevId: b2cdf3cc4c08729d0ff582d55e40793a20bbcdcc
This directory and its subdirectories contain source code for the LLVM Linker, a modular cross platform linker which is built as part of the LLVM compiler infrastructure project.
lld is open source software. You may freely distribute it under the terms of the license agreement found in LICENSE.txt.
In order to make sure various developers can evaluate patches over the same tests, we create a collection of self contained programs.
It is hosted at https://s3-us-west-2.amazonaws.com/linker-tests/lld-speed-test.tar.xz
The current sha256 is 10eec685463d5a8bbf08d77f4ca96282161d396c65bd97dc99dbde644a31610f
.