meow
Some checks are pending
test / test (push) Waiting to run

This commit is contained in:
nora 2025-09-29 21:22:21 +02:00
parent d57e076267
commit 97b2f2c4be
2 changed files with 37 additions and 2 deletions

View file

@ -584,6 +584,41 @@ fn main() { math::add() }
- annoying to set up
</textarea>
</section>
<section data-markdown>
<textarea data-template>
## inlining across codegen units in the same crate
- ThinLTO across different codegen units by default
</textarea>
</section>
<section data-markdown>
<textarea data-template>
## `Cargo.toml` config
```toml
[profile.release]
lto = "thin"
codegen-units = 1
```
</textarea>
</section>
<section data-markdown>
<textarea data-template>
## and why did `#[inline]` make the error go away?
```rust
pub fn error() {
// vvvvvvvvvvv post-mono error!
let _x: [u8; usize::MAX] = [0; usize::MAX];
}
```
</textarea>
</section>
<section data-markdown>
<textarea data-template>
## happy compiling
</textarea>
</section>
</div>
</div>

View file

@ -18,7 +18,6 @@
- resolve, typecheck
- MIR
- intermediate representation
- CFG
- borrow checker
- LLVM IR
- LLVM backend
@ -71,6 +70,7 @@
- dont always use it because its slow
- dont forget about it
- benchmark
- todo
- if you dont want to worry about this as an application
- LTO
- no cross-crate-inline-threshold