code_size_compare.py: add armv8-m option for arch
Signed-off-by: Yanray Wang <yanray.wang@arm.com>
This commit is contained in:
parent
60430bda37
commit
aba7158a6f
1 changed files with 4 additions and 3 deletions
|
@ -37,6 +37,7 @@ class SupportedArch(Enum):
|
||||||
"""Supported architecture for code size measurement."""
|
"""Supported architecture for code size measurement."""
|
||||||
AARCH64 = 'aarch64'
|
AARCH64 = 'aarch64'
|
||||||
AARCH32 = 'aarch32'
|
AARCH32 = 'aarch32'
|
||||||
|
ARMV8_M = 'armv8-m'
|
||||||
X86_64 = 'x86_64'
|
X86_64 = 'x86_64'
|
||||||
X86 = 'x86'
|
X86 = 'x86'
|
||||||
|
|
||||||
|
@ -85,7 +86,7 @@ class CodeSizeInfo: # pylint: disable=too-few-public-methods
|
||||||
|
|
||||||
if self.config == SupportedConfig.DEFAULT.value:
|
if self.config == SupportedConfig.DEFAULT.value:
|
||||||
return 'make -j lib CFLAGS=\'-Os \' '
|
return 'make -j lib CFLAGS=\'-Os \' '
|
||||||
elif self.arch == SupportedArch.AARCH32.value and \
|
elif self.arch == SupportedArch.ARMV8_M.value and \
|
||||||
self.config == SupportedConfig.TFM_MEDIUM.value:
|
self.config == SupportedConfig.TFM_MEDIUM.value:
|
||||||
return \
|
return \
|
||||||
'make -j lib CC=armclang \
|
'make -j lib CC=armclang \
|
||||||
|
@ -316,9 +317,9 @@ def main():
|
||||||
else:
|
else:
|
||||||
new_revision = "current"
|
new_revision = "current"
|
||||||
|
|
||||||
print("Measure code size for architecture: {}, configuration: {}"
|
|
||||||
.format(comp_args.arch, comp_args.config))
|
|
||||||
code_size_info = CodeSizeInfo(comp_args.arch, comp_args.config)
|
code_size_info = CodeSizeInfo(comp_args.arch, comp_args.config)
|
||||||
|
print("Measure code size for architecture: {}, configuration: {}"
|
||||||
|
.format(code_size_info.arch, code_size_info.config))
|
||||||
result_dir = comp_args.result_dir
|
result_dir = comp_args.result_dir
|
||||||
size_compare = CodeSizeComparison(old_revision, new_revision, result_dir,
|
size_compare = CodeSizeComparison(old_revision, new_revision, result_dir,
|
||||||
code_size_info)
|
code_size_info)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue