Hi

 

The code size analyse tool has been merged. Hope it can help you track size change of TF-M.

Recently, I’m still optimizing and enhancing the tool. If there is any issue of usage, ideas or requirements, I’ll be grateful if you can share with me. Thanks.

 

Best Regards

Jianliang Shen

 

From: Jianliang Shen via TF-M <tf-m@lists.trustedfirmware.org>
Sent: 12 January 2022 11:42
To: tf-m@lists.trustedfirmware.org; Anton Komlev <Anton.Komlev@arm.com>
Cc: nd <nd@arm.com>
Subject: [TF-M] Code size analyze tool for TF-M further optimization

 

Hi all,

 

I’d like to introduce a code size analyse tool to you. The tool is developed to help optimize TF-M code size by gathering the data from map file and output friendly.

 

These python scripts can

- Get a database to implement data tables from ARMCLANG or GNUARM map file.

- Supply an UI for developers to scan sorted information of sections, libraries, object files, functions and data.

- Help analyse the biggest or smallest targets in certain image. It can also help search functions or data to locate their address and detail information.

- Diff two databases to see the code size increment or decrement between two different build results.

 

The patch is: [tf-m-tools], it also contains the document for users.

 

Hope this tool can help you measure code size in the daily work. Please let me know if anything can be improved. I'd like to merge this tool this Friday if no critical comment.

 

Best Regards

Jianliang Shen