Gilles Peskine 766ff6802e Calculate a score for fields
The score is the access cost on Cortex-M0+ thumb builds, expressed in
instructions. This commit does not have any provisions to calculate
different scores based on the target architecture, so it's only meaningful
when running this script with `-t armv6m-unknown-eabi`.

Go with a simple model: direct access is possible for the first 128 fields
of a structure, direct access costs 1 instruction, indirect access costs 3
instructions.

The score calculation assumes that each lexical use in the source code
corresponds to one access. This does not take into account unused code,
inlining, uses from application code, etc.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2021-09-16 20:04:49 +02:00
..
data_files Rename config.h to mbedtls_config.h 2021-06-28 09:28:33 +01:00
mbedtls_dev Merge pull request #4701 from gilles-peskine-arm/make_generated_files-non_english-3.0 2021-07-23 14:05:08 +02:00
abi_check.py Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
apidoc_full.sh Rename config.h to mbedtls_config.h 2021-06-28 09:28:33 +01:00
assemble_changelog.py Explicitly use UTF-8 in assemble_changelog 2021-05-20 10:37:22 +02:00
bump_version.sh The version was moved from version.h to build_info.h 2021-07-01 11:11:30 +02:00
config.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
config.py Rename config.h to mbedtls_config.h 2021-06-28 09:28:33 +01:00
ecc-heap.sh Remove check_config.h inclusion from ecc-heap.sh 2021-06-28 14:21:55 +01:00
ecp_comb_table.py Rename config.h to mbedtls_config.h 2021-06-28 09:28:33 +01:00
field_report.py Calculate a score for fields 2021-09-16 20:04:49 +02:00
find-mem-leak.cocci Remove malloc references in mbedtls/scripts 2017-07-06 10:34:12 +01:00
footprint.sh Rename config.h to mbedtls_config.h 2021-06-28 09:28:33 +01:00
generate_errors.pl Show warnings if something looks wrong 2021-08-02 22:53:40 +02:00
generate_features.pl Rename config.h to mbedtls_config.h 2021-06-28 09:28:33 +01:00
generate_psa_constants.py Allow running source file generators from a subdirectory 2021-05-17 22:46:27 +02:00
generate_query_config.pl Rename config.h to mbedtls_config.h 2021-06-28 09:28:33 +01:00
generate_visualc_files.pl Simplify line ending management and make it work on Windows 2021-05-20 10:37:22 +02:00
make_generated_files.bat Explicitly specify exit code for "exit /b" 2021-05-20 10:37:22 +02:00
massif_max.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
memory.sh Rename config.h to mbedtls_config.h 2021-06-28 09:28:33 +01:00
output_env.sh Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
rm-calloc-cast.cocci Remove malloc references in mbedtls/scripts 2017-07-06 10:34:12 +01:00
tmp_ignore_makefiles.sh Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
windows_msbuild.bat Add a simple build script for Windows with Visual Studio 2020-04-26 20:52:04 +02:00