All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] ARM: omapl138_lcdk: Shrink code size by building with Thumb
@ 2019-11-10 12:33 Adam Ford
  2019-11-13 13:35 ` Bartosz Golaszewski
  2019-12-05 22:08 ` Tom Rini
  0 siblings, 2 replies; 3+ messages in thread
From: Adam Ford @ 2019-11-10 12:33 UTC (permalink / raw)
  To: u-boot

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

Signed-off-by: Adam Ford <aford173@gmail.com>

diff --git a/configs/omapl138_lcdk_defconfig b/configs/omapl138_lcdk_defconfig
index 9821df9884..16287a4ac2 100644
--- a/configs/omapl138_lcdk_defconfig
+++ b/configs/omapl138_lcdk_defconfig
@@ -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
-- 
2.20.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [U-Boot] [PATCH] ARM: omapl138_lcdk: Shrink code size by building with Thumb
  2019-11-10 12:33 [U-Boot] [PATCH] ARM: omapl138_lcdk: Shrink code size by building with Thumb Adam Ford
@ 2019-11-13 13:35 ` Bartosz Golaszewski
  2019-12-05 22:08 ` Tom Rini
  1 sibling, 0 replies; 3+ messages in thread
From: Bartosz Golaszewski @ 2019-11-13 13:35 UTC (permalink / raw)
  To: u-boot

niedz., 10 lis 2019 o 13:33 Adam Ford <aford173@gmail.com> napisał(a):
>
> 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
>
> Signed-off-by: Adam Ford <aford173@gmail.com>
>
> diff --git a/configs/omapl138_lcdk_defconfig b/configs/omapl138_lcdk_defconfig
> index 9821df9884..16287a4ac2 100644
> --- a/configs/omapl138_lcdk_defconfig
> +++ b/configs/omapl138_lcdk_defconfig
> @@ -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
> --
> 2.20.1
>

Tested-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Reviewed-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] [PATCH] ARM: omapl138_lcdk: Shrink code size by building with Thumb
  2019-11-10 12:33 [U-Boot] [PATCH] ARM: omapl138_lcdk: Shrink code size by building with Thumb Adam Ford
  2019-11-13 13:35 ` Bartosz Golaszewski
@ 2019-12-05 22:08 ` Tom Rini
  1 sibling, 0 replies; 3+ messages in thread
From: Tom Rini @ 2019-12-05 22:08 UTC (permalink / raw)
  To: u-boot

On Sun, Nov 10, 2019 at 06:33:40AM -0600, Adam Ford wrote:

> 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
> 
> Signed-off-by: Adam Ford <aford173@gmail.com>
> Tested-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
> Reviewed-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
> 
> diff --git a/configs/omapl138_lcdk_defconfig b/configs/omapl138_lcdk_defconfig
> index 9821df9884..16287a4ac2 100644

Applied to u-boot/master, thanks!

-- 
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>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-12-05 22:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-10 12:33 [U-Boot] [PATCH] ARM: omapl138_lcdk: Shrink code size by building with Thumb Adam Ford
2019-11-13 13:35 ` Bartosz Golaszewski
2019-12-05 22:08 ` Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.