Skip to content

Commit 0c2f581

Browse files
committed
doc: add note on reducing binary sizes
1 parent 4ebbe60 commit 0c2f581

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,13 @@ nix-shell # this will install all build tools and dependencies
144144
make -j8 # or number of cores you want to use
145145
```
146146

147+
### General build notes
148+
149+
* **Binary sizes**. The `zsided` and `zside-cli` binaries are large. Linux binaries
150+
are around 150MB, and Windows binaries are over 200MB! They can be reduced by
151+
setting `CFLAGS` and `CXXFLAGS` to `-g0`. This disables debug information, and
152+
more than halves binary sizes.
153+
147154
### Regtest Demo Script
148155

149156
A script for: activating this sidechain (on [drivechain](https://github.com/drivechain-project/mainchain/)), mining blocks, depositing and withdrawing coins, generating t/z addresses and using them, is [available here](zside-tour-2022.sh).

0 commit comments

Comments
 (0)