Skip to contentSkip to conversation

ARM: omapl138_lcdk: Shrink code size by building with Thumb

PATCH New Adam Ford 3 participants 3 messages Nov 10, 2019 – Dec 5, 2019

lore
Share & tools
lore

Adam Ford

author
#0 lore raw

PATCH 1/1 ARM: omapl138_lcdk: Shrink code size by building with Thumb

SPL has limited available resources, and the performance between ARM and Thumb isn't that significant.

This patch builds using Thumb instruction set to reduce the code size by nearly 6K.

Original:
text data bss dec hex filename
26526 4004 1376 31906 7ca2 spl/u-boot-spl

Thumb:

text data bss dec hex filename
20232 4004 1376 25612 640c spl/u-boot-spl

configs/omapl138_lcdk_defconfig +1 -0
index 9821df9884..16287a4ac2 100644
@@ -1,4 +1,5 @@
 CONFIG_ARM=y
+CONFIG_SYS_THUMB_BUILD=y
 CONFIG_ARCH_DAVINCI=y
 CONFIG_SYS_TEXT_BASE=0xc1080000
 CONFIG_TARGET_OMAPL138_LCDK=y
Signature · 1 line
2.20.1
#1 lore raw

PATCH 1/1 ARM: omapl138_lcdk: Shrink code size by building with Thumb

niedz., 10 lis 2019 o 13:33 Adam Ford <[email protected]> napisaÅ‚(a):

Quoted 29 lines

SPL has limited available resources, and the performance between ARM and Thumb isn't that significant.

This patch builds using Thumb instruction set to reduce the code size by nearly 6K.

Original:
text data bss dec hex filename
26526 4004 1376 31906 7ca2 spl/u-boot-spl

Thumb:

text data bss dec hex filename
20232 4004 1376 25612 640c spl/u-boot-spl

configs/omapl138_lcdk_defconfig +1 -1
index 9821df9884..16287a4ac2 100644
@@ -1,4 +1,5 @@
 CONFIG_ARM=y
+CONFIG_SYS_THUMB_BUILD=y
 CONFIG_ARCH_DAVINCI=y
 CONFIG_SYS_TEXT_BASE=0xc1080000
 CONFIG_TARGET_OMAPL138_LCDK=y
--
Quoted 2 lines

2.20.1

#2 lore raw

PATCH 1/1 ARM: omapl138_lcdk: Shrink code size by building with Thumb

In reply to Adam Ford

configs/omapl138_lcdk_defconfig

Quoted 21 lines · Adam Ford

SPL has limited available resources, and the performance between ARM and Thumb isn't that significant.

This patch builds using Thumb instruction set to reduce the code size by nearly 6K.

Original:
text data bss dec hex filename
26526 4004 1376 31906 7ca2 spl/u-boot-spl

Thumb:

text data bss dec hex filename
20232 4004 1376 25612 640c spl/u-boot-spl

configs/omapl138_lcdk_defconfig +0 -0
index 9821df9884..16287a4ac2 100644

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20191205/68bfb519/attachment.sig>