Open tom-cosgrove-arm opened 1 year ago
Compiler options should be
-Os
, as used by TF-M. (Ask them about-Oz
)
TF-M uses MinSizeRel
for which the default optimisation level is -Os
.
On ArmClang they have modified MinSizeRel
to use -Oz
, but with gcc still use -Os
(gcc11 doesn't support -Oz
- gcc12 will, but he highest version of gcc supported by TF-M is 11.3.1)
@dave-rodgman @tom-daubney-arm @yanrayw ^
Summary of Requirements
libmbedcrypto
(PSA)libmbedx509
andlibmbedtls.a
Epic Summary
S
+ qM
= ? weeksNote: we refer to "code size" throughout, but are including the size of initialised data, i.e. the total flash memory required
Useful Information
We primarily care about Armv8-M or Armv8.1-M (Thumb and Thumb-2 instructions, not Aarch64/A64). TF-M takes measurements for
an521
platform, i.e. Cortex-M33, so that's what we will use.We care about the TF-M
SMALL
andMEDIUM
configurations.Compiler options should be
-Os
, as used by TF-M. (Ask them about-Oz
)Target compiler is Armclang v6.19 with (TF-M) build type MinSizeRel.
For changes that are size/performance trade-offs, this needs to be documented as part of any pull request, and the performance reduction included in the review.
The TF-M v1.70 release notes with sizes of Mbed TLS
libmbedcrypto
are at https://tf-m-user-guide.trustedfirmware.org/releases/1.7.0.htmlKanban to track progress: https://github.com/orgs/Mbed-TLS/projects/7
Building TF-M