All-Your-Locks-Are-Belong-To-Us / libmicrofido2

Minimal FIDO2 library for microcontrollers
Other
16 stars 6 forks source link

Garbage Collect Sections On AVR #24

Closed felix-gohla closed 2 years ago

felix-gohla commented 2 years ago

Reduces code size for the binary output.

Fixes an issue, where the code couldn't be successfully compiled for AVR because the .text section overflowed the available storage.

frcroth commented 2 years ago

Lgtm. Do you have data on how much storage is saved for our case?

felix-gohla commented 2 years ago

Lgtm. Do you have data on how much storage is saved for our case?

The AVR version with assertion verification now is like 80K and without this fix, it overflowed the .text section by another 40K and didn't even compile (so around 160K in total).