ttrftech / NanoVNA

Very Tiny Palmtop Vector Network Analyzer
1.06k stars 297 forks source link

Enable LTO #100

Closed nieldk closed 4 years ago

nieldk commented 4 years ago

Enable LTO to free more memory on device flash

edy555 commented 4 years ago

Amazing! Enabling LTO option gives significant result. :+1:

before enabling LTO at 0.5.4

   text    data     bss     dec     hex filename
  92596    5040   11536  109172   1aa74 build/ch.elf
Creating build/ch.list

after enabled LTO

   text    data     bss     dec     hex filename
  89064    5032   11544  105640   19ca8 build/ch.elf
Creating build/ch.list
edy555 commented 4 years ago

Would you like to rebase commits to squash as 1 commit?

nieldk commented 4 years ago

Its just a simple change, if you change in your repo, i am good with that.