notes:programming:golang_filesize_optimization
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| notes:programming:golang_filesize_optimization [2022/10/06 20:20] – created asie | notes:programming:golang_filesize_optimization [2022/10/06 20:32] (current) – asie | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Go filesize optimization tricks ====== | ====== Go filesize optimization tricks ====== | ||
| - | Let's assume that you want to use TinyGo, but can't. What tricks can you employ to make your Go file smaller? | + | Let's assume that you want to use TinyGo, but can' |
| Developed as part of WebAssembly ZZT port research - [[https:// | Developed as part of WebAssembly ZZT port research - [[https:// | ||
| Line 11: | Line 11: | ||
| ===== Compilation ===== | ===== Compilation ===== | ||
| - | * Add `-trimpath -ldflags=" | + | * Add '' |
| - | * Replace | + | * Replace |
| - | * For WebAssembly, | + | * For WebAssembly, |
| - | * Use `-gcflags=all=" | + | * Use '' |
notes/programming/golang_filesize_optimization.1665087618.txt.gz · Last modified: by asie
