Skip to content

Commit

Permalink
Update README.md on how to minimize produced binary size.
Browse files Browse the repository at this point in the history
  • Loading branch information
imikushin authored Nov 21, 2024
1 parent b3e8a03 commit 196f904
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,16 @@ cd program
cargo prove build
```

The produced binary can be found in `target/elf-compilation/riscv32im-succinct-zkvm-elf/release`.
To reduce the size of the binary, uncomment the following lines in `Cargo.toml` (in the project root):

```toml
[profile.release]
lto = "fat"
opt-level = "s"
strip = "symbols"
```

### Execute the Program

To run the program without generating a proof:
Expand Down

0 comments on commit 196f904

Please sign in to comment.