Tools: Refine GNUARM support and data output
The result collect from GNUARM need to be refined and made more
accurate. The two different compliers work differently and the
results are required to be transformed in different formats.
Signed-off-by: Jianliang Shen <jianliang.shen@arm.com>
Change-Id: Ia3ec3e0157adb0bd68e557422fcf6928e4eb5259
diff --git a/code-size-analyze-tool/code_size_diff.py b/code-size-analyze-tool/code_size_diff.py
index 16748f7..ffd4d84 100644
--- a/code-size-analyze-tool/code_size_diff.py
+++ b/code-size-analyze-tool/code_size_diff.py
@@ -1,9 +1,9 @@
-# -----------------------------------------------------------------------------
-# Copyright (c) 2021, Arm Limited. All rights reserved.
+# ------------------------------------------------------------------------------
+# Copyright (c) 2021-2022, Arm Limited. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
-# -----------------------------------------------------------------------------
+# ------------------------------------------------------------------------------
import sqlite3
import argparse
@@ -12,9 +12,9 @@
cursor1 = cur1.execute("select * from Summary")
cursor2 = cur2.execute("select * from Summary")
for row in cursor1:
- data1 = [row[0], row[1], row[2], row[3], row[4], row[5]]
+ data1 = [row[0], row[1], row[2], row[3], row[6], row[7]]
for row in cursor2:
- data2 = [row[0], row[1], row[2], row[3], row[4], row[5]]
+ data2 = [row[0], row[1], row[2], row[3], row[6], row[7]]
text = ["Code size:", "RO data:", "RW data:",
"ZI data:", "Flash size:", "RAM size:"]