SPlatform / SPBootloader

GNU General Public License v3.0
1 stars 1 forks source link

mbedTLS Code Size Optimization #14

Open SPlatform opened 8 years ago

SPlatform commented 8 years ago

mbedTLS needs more optimization to reduce Code Size. Enable only required features/protocols.

Example memory footprint for no code optimization (O0)


  Code (inc. data)   RO Data    RW Data    ZI Data      Debug   Object Name

  3852          0          0          0          0      18816   bignum.o
   382         34          0          0          0       8302   md.o
  2812        268         64          0          0       7861   md5.o
   426          0        219          0          0      16349   md_wrap.o
   248         26          0          0          0       6602   rsa_verify.o
  6952         40         64          0          0       9041   sha1.o
  4288         84        320          0          0       8981   sha256.o

SPlatform commented 8 years ago

See mbedTLS kinetis K82 port. In that port, HW Crypto engines are used and code size seems to reduced almost 8~10KBytes

SPlatform commented 8 years ago

We are already working with Optimization Level 3 of ARMCC.