threeme3 / usdx

Simple and experimental (class-E driven) SSB transceiver.
616 stars 221 forks source link

Use unsigned int when possible #25

Closed howard0su closed 3 years ago

howard0su commented 3 years ago

This reduce the code size by two factors:

  1. unsigned version can produce less code
  2. paramAction can reduce the different versions of templated code

Before; Sketch uses 27804 bytes (86%) of program storage space. Maximum is 32256 bytes. Global variables use 1291 bytes (63%) of dynamic memory, leaving 757 bytes for local variables. Maximum is 2048 bytes.

After; Sketch uses 27418 bytes (85%) of program storage space. Maximum is 32256 bytes. Global variables use 1291 bytes (63%) of dynamic memory, leaving 757 bytes for local variables. Maximum is 2048 bytes.