mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-23 03:05:43 +01:00
baremetal.sh: Print code-size summary
This commit modifies `scripts/baremetal.sh` to print the total code-size of the SSL, X.509 and Crypto libraries are runs of - ./scripts/baremetal.sh --rom --gcc - ./scripts/baremetal.sh --rom --armc5 - ./scripts/baremetal.sh --rom --armc6 This eases quick investigation of the effect of changes on code-size.
This commit is contained in:
parent
21d1c32b2b
commit
7cc9ca876f
@ -94,6 +94,11 @@ baremetal_build_gcc()
|
||||
echo "ROM statistics written to:"
|
||||
echo "* $ROM_OUT_FILE"
|
||||
echo "* $ROM_OUT_SYMS"
|
||||
|
||||
# Print summary
|
||||
cat $ROM_OUT_FILE | grep "libmbedtls.a" | awk '{printf( "%15s: %s Bytes\n", $4, $5)}'
|
||||
cat $ROM_OUT_FILE | grep "libmbedcrypto.a" | awk '{printf( "%15s: %s Bytes\n", $4, $5)}'
|
||||
cat $ROM_OUT_FILE | grep "libmbedx509.a" | awk '{printf( "%15s: %s Bytes\n", $4, $5)}'
|
||||
}
|
||||
|
||||
baremetal_build_armc5()
|
||||
@ -122,6 +127,11 @@ baremetal_build_armc5()
|
||||
echo "ROM statistics written to:"
|
||||
echo "* $ROM_OUT_FILE"
|
||||
echo "* $ROM_OUT_SYMS"
|
||||
|
||||
# Print summary
|
||||
cat $ROM_OUT_FILE | grep "libmbedtls.a" | awk '{printf( "%15s: %s Bytes\n", $4, $5)}'
|
||||
cat $ROM_OUT_FILE | grep "libmbedcrypto.a" | awk '{printf( "%15s: %s Bytes\n", $4, $5)}'
|
||||
cat $ROM_OUT_FILE | grep "libmbedx509.a" | awk '{printf( "%15s: %s Bytes\n", $4, $5)}'
|
||||
}
|
||||
|
||||
baremetal_build_armc6()
|
||||
@ -150,6 +160,11 @@ baremetal_build_armc6()
|
||||
echo "ROM statistics written to:"
|
||||
echo "* $ROM_OUT_FILE"
|
||||
echo "* $ROM_OUT_SYMS"
|
||||
|
||||
# Print summary
|
||||
cat $ROM_OUT_FILE | grep "libmbedtls.a" | awk '{printf( "%15s: %s Bytes\n", $4, $5)}'
|
||||
cat $ROM_OUT_FILE | grep "libmbedcrypto.a" | awk '{printf( "%15s: %s Bytes\n", $4, $5)}'
|
||||
cat $ROM_OUT_FILE | grep "libmbedx509.a" | awk '{printf( "%15s: %s Bytes\n", $4, $5)}'
|
||||
}
|
||||
|
||||
# 32-bit host-build of library, tests and example programs,
|
||||
|
Loading…
Reference in New Issue
Block a user