ArduinoCore-arc32 icon indicating copy to clipboard operation
ArduinoCore-arc32 copied to clipboard

Slim down sketch size

Open facchinm opened this issue 8 years ago • 1 comments

Since 0304de781d54d0158c070d2d9cc750ab295c0712 the sketch size has exploded. Moving the BLE stack to ARC core is the main responsible. This patch addresses two main fields:

  • avoid including useless functions (WIP)
  • avoid including ble symbols in sketches which don't use it

The first patch could be further optimized but since most sketches uses the CDC port it doesn't make much sense.

Sketch size comparison: BareMinimum: 48744 -> 12540 (BLE central) Scan: 91692 -> 80440

facchinm avatar May 19 '17 15:05 facchinm

@SidLeung can you review please?

eriknyquist avatar May 22 '17 16:05 eriknyquist