Add code size target#590
Draft
davidhorstmann-arm wants to merge 4 commits intoMbed-TLS:developmentfrom
Draft
Conversation
This simply generates a code size report using the script in the framework. Signed-off-by: David Horstmann <[email protected]>
We can set it separately in toolchain files when needed. Signed-off-by: David Horstmann <[email protected]>
Call a second script to show the code size that was generated as part of the size target. This makes the feature immediately usable. Signed-off-by: David Horstmann <[email protected]>
This gets the code size scripts that were added which allow us to create the size target. Signed-off-by: David Horstmann <[email protected]>
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Use the scripts from Mbed-TLS/mbedtls-framework#246 to implement a new target in CMake called
sizewhich displays the code sizes of modules and generates a JSON code size report.To use it, simply do the following:
When cross compiling with a toolchain file, this relies on the variable
CMAKE_SIZE_UTILbeing set to thesizecommand for the relevant architecture (e.g.arm-none-eabi-size).PR checklist
Please remove the segment/s on either side of the | symbol as appropriate, and add any relevant link/s to the end of the line.
If the provided content is part of the present PR remove the # symbol.