Skip to content

Commit a9ccb1f

Browse files
authored
small docs fixes (#426)
Signed-off-by: Cyrill Leutwiler <[email protected]>
1 parent e7e40a0 commit a9ccb1f

26 files changed

+34
-34
lines changed

book/src/developer_guide/architecture.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Unlike with the EVM, where heap memory usage is gas metered, our heap size is st
4545

4646
LLVM is a special non Rust dependency. We interface its builder interface via the [inkwell](https://crates.io/crates/inkwell) wrapper crate.
4747

48-
We use upstream LLVM, but release and use our custom builds. We require the compiler builtins specifically built for the PVM rv64e target and always leave assertions on. Furthermore, we need cross builds because `resolc` itself targets emscripten and musl. The [revive-llvm-builer](https://crates.io/crates/revive-llvm-builder) functions as a cross-platform build script and is used to build and release the LLVM dependency.
48+
We use upstream LLVM, but release and use our custom builds. We require the compiler builtins specifically built for the PVM `rv64emacb` target and always leave assertions on. Furthermore, we need cross builds because `resolc` itself targets emscripten and musl. The [revive-llvm-builer](https://crates.io/crates/revive-llvm-builder) functions as a cross-platform build script and is used to build and release the LLVM dependency.
4949

5050
We also maintain the [lld-sys crate](https://crates.io/crates/lld-sys) for interfacing with `LLD`. The LLVM linker is used during the compilation process, but we don't want to distribute another binary.
5151

book/src/user_guide/cli.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Valid levels are the following:
2121
- `s`: Optimize for code size.
2222
- `z`: Aggressively optimize for code size.
2323

24-
By default, `-O3` is applied.
24+
By default, `-Oz` is applied.
2525

2626
### Stack size
2727
```bash
@@ -31,11 +31,11 @@ By default, `-O3` is applied.
3131
PVM is a register machine with a traditional stack memory space for local variables. This controls the total amount of stack space the contract can use.
3232

3333
You are incentivized to keep this value as small as possible:
34-
1. Increasing the stack size will increase startup costs.
34+
1. Increasing the stack size will increase gas costs due to increased startup costs.
3535
2. The stack size contributes to the total memory size a contract can use, which includes the contract's code size.
3636

3737
Default value: 32768
38-
38+
3939
> [!WARNING]
4040
>
4141
> If the contract uses more stack memory than configured, it will compile fine but eventually revert execution at runtime!
@@ -52,7 +52,7 @@ You are incentivized to keep this value as small as possible:
5252
2.The heap size contributes to the total memory size a contract can use, which includes the contract's code size
5353

5454
Default value: 65536
55-
55+
5656
> [!WARNING]
5757
>
5858
> If the contract uses more heap memory than configured, it will compile fine but eventually revert execution at runtime!

docs/404.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
const path_to_root = "";
3737
const default_light_theme = "light";
3838
const default_dark_theme = "navy";
39-
window.path_to_searchindex_js = "searchindex-756a6899.js";
39+
window.path_to_searchindex_js = "searchindex-82723808.js";
4040
</script>
4141
<!-- Start loading toc.js asap -->
4242
<script src="toc-6f3f265e.js"></script>

docs/developer_guide.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
const path_to_root = "";
3636
const default_light_theme = "light";
3737
const default_dark_theme = "navy";
38-
window.path_to_searchindex_js = "searchindex-756a6899.js";
38+
window.path_to_searchindex_js = "searchindex-82723808.js";
3939
</script>
4040
<!-- Start loading toc.js asap -->
4141
<script src="toc-6f3f265e.js"></script>

docs/developer_guide/architecture.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
const path_to_root = "../";
3636
const default_light_theme = "light";
3737
const default_dark_theme = "navy";
38-
window.path_to_searchindex_js = "../searchindex-756a6899.js";
38+
window.path_to_searchindex_js = "../searchindex-82723808.js";
3939
</script>
4040
<!-- Start loading toc.js asap -->
4141
<script src="../toc-6f3f265e.js"></script>
@@ -205,7 +205,7 @@ <h2 id="evm-heap-memory"><a class="header" href="#evm-heap-memory">EVM heap memo
205205
<p>Unlike with the EVM, where heap memory usage is gas metered, our heap size is static (the size is user controllable via a setting flag). The compiler emits bound checks to prevent overflows.</p>
206206
<h2 id="the-llvm-dependency"><a class="header" href="#the-llvm-dependency">The LLVM dependency</a></h2>
207207
<p>LLVM is a special non Rust dependency. We interface its builder interface via the <a href="https://crates.io/crates/inkwell">inkwell</a> wrapper crate.</p>
208-
<p>We use upstream LLVM, but release and use our custom builds. We require the compiler builtins specifically built for the PVM rv64e target and always leave assertions on. Furthermore, we need cross builds because <code>resolc</code> itself targets emscripten and musl. The <a href="https://crates.io/crates/revive-llvm-builder">revive-llvm-builer</a> functions as a cross-platform build script and is used to build and release the LLVM dependency.</p>
208+
<p>We use upstream LLVM, but release and use our custom builds. We require the compiler builtins specifically built for the PVM <code>rv64emacb</code> target and always leave assertions on. Furthermore, we need cross builds because <code>resolc</code> itself targets emscripten and musl. The <a href="https://crates.io/crates/revive-llvm-builder">revive-llvm-builer</a> functions as a cross-platform build script and is used to build and release the LLVM dependency.</p>
209209
<p>We also maintain the <a href="https://crates.io/crates/lld-sys">lld-sys crate</a> for interfacing with <code>LLD</code>. The LLVM linker is used during the compilation process, but we don’t want to distribute another binary.</p>
210210
<h2 id="custom-optimizations"><a class="header" href="#custom-optimizations">Custom optimizations</a></h2>
211211
<p>At the moment, no significant custom optimizations are implemented. Thus, we are missing some optimization opportunities that neither <code>solc</code> nor LLVM can realize (due to their lack of domain specific knowledge about the semantics of our target environment). Furthermore, <code>solc</code> optimizes for EVM gas and a target machine orthogonal to our target (BE 256-bit stack machine EVM vs. 64-bit LE RISC architecture PVM). We have started working on an additional IR layer between Yul and LLVM to capture missed optimization opportunities, though.</p>

docs/developer_guide/contributing.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
const path_to_root = "../";
3636
const default_light_theme = "light";
3737
const default_dark_theme = "navy";
38-
window.path_to_searchindex_js = "../searchindex-756a6899.js";
38+
window.path_to_searchindex_js = "../searchindex-82723808.js";
3939
</script>
4040
<!-- Start loading toc.js asap -->
4141
<script src="../toc-6f3f265e.js"></script>

docs/developer_guide/cross_compilation.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
const path_to_root = "../";
3636
const default_light_theme = "light";
3737
const default_dark_theme = "navy";
38-
window.path_to_searchindex_js = "../searchindex-756a6899.js";
38+
window.path_to_searchindex_js = "../searchindex-82723808.js";
3939
</script>
4040
<!-- Start loading toc.js asap -->
4141
<script src="../toc-6f3f265e.js"></script>

docs/developer_guide/target.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
const path_to_root = "../";
3636
const default_light_theme = "light";
3737
const default_dark_theme = "navy";
38-
window.path_to_searchindex_js = "../searchindex-756a6899.js";
38+
window.path_to_searchindex_js = "../searchindex-82723808.js";
3939
</script>
4040
<!-- Start loading toc.js asap -->
4141
<script src="../toc-6f3f265e.js"></script>

docs/developer_guide/testing.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
const path_to_root = "../";
3636
const default_light_theme = "light";
3737
const default_dark_theme = "navy";
38-
window.path_to_searchindex_js = "../searchindex-756a6899.js";
38+
window.path_to_searchindex_js = "../searchindex-82723808.js";
3939
</script>
4040
<!-- Start loading toc.js asap -->
4141
<script src="../toc-6f3f265e.js"></script>

docs/faq.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
const path_to_root = "";
3636
const default_light_theme = "light";
3737
const default_dark_theme = "navy";
38-
window.path_to_searchindex_js = "searchindex-756a6899.js";
38+
window.path_to_searchindex_js = "searchindex-82723808.js";
3939
</script>
4040
<!-- Start loading toc.js asap -->
4141
<script src="toc-6f3f265e.js"></script>

0 commit comments

Comments
 (0)