public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PPC] PLEASE READ - was: [PATCH] Fix linker scripts: add NOLOAD atribute to .bss/.sbss sections
Date: Mon, 4 Feb 2008 11:37:00 +0100	[thread overview]
Message-ID: <200802041137.00538.sr@denx.de> (raw)
In-Reply-To: <20080203233236.A822924308@gemini.denx.de>

Hi Wolfgang,

On Monday 04 February 2008, Wolfgang Denk wrote:
> A possible approach to this  problem  is  to  avoid  using  a  global
> register  variable  and  use  a  plain  global  variable instead. The
> necessary code for this is already there (just commented out); when I
> implemented this initially,  I  decided  to  use  a  global  register
> variable because it gave slightly smaller code.
>
> Here is an overview of the effect (test build of current top of  tree
> for the "katmai" (PPC440SPe) board):
>
> ELDK Version	Register-Var.			Globale Var.
> 	   text    data     bss     dec	      text    data     bss     dec
> 4.0	 243292   13700  322340  579332	    244160   13808  322340  580308
> 4.1	 243292   13700  322340  579332     244160   13808  322340  580308
> 4.2	 section ... overlaps previous	    245496   13188  322340  581024
>
> As you can see, the difference in code size is less than 1 KiB.

Nice.

> My suggestion is to change the code to use a plain  global  variable,
> however  I  need  feedback  if we can / want to do that as it effects
> *ALL* PowerPC boards.

Acked-by for this change from me. I tested successfully on AMCC Katmai, which 
now fits again in the 256k with GCC 4.2.2.

Thanks.

Best regards,
Stefan

=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================

  reply	other threads:[~2008-02-04 10:37 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-07 11:16 [U-Boot-Users] [PATCH] Fix linker scripts: add NOLOAD atribute to .bss/.sbss sections Wolfgang Denk
2007-12-07 13:28 ` Josh Boyer
2007-12-11 22:50   ` brino
2007-12-12 11:17     ` Clemens Koller
2007-12-12 11:32       ` [U-Boot-Users] fixed: " Clemens Koller
2008-01-12 19:34 ` [U-Boot-Users] " Wolfgang Denk
2008-01-13 13:59   ` Stefan Roese
2008-02-03 23:32     ` [U-Boot-Users] [PPC] PLEASE READ - was: " Wolfgang Denk
2008-02-04 10:37       ` Stefan Roese [this message]
2008-02-04 16:56       ` Scott Wood
2008-02-04 19:14         ` Wolfgang Denk
2008-02-04 19:17           ` Scott Wood
2008-02-14 22:19             ` Wolfgang Denk
2008-02-15 18:18               ` Joakim Tjernlund
2008-02-06  9:59           ` Joakim Tjernlund
2008-02-06 22:11             ` Wolfgang Denk
2008-02-07  0:20               ` Joakim Tjernlund
2008-02-07 16:13                 ` Wolfgang Denk
2008-02-04 17:40       ` Timur Tabi
2008-02-04 19:16         ` Wolfgang Denk
2008-02-04 19:24           ` Timur Tabi
2008-02-04 20:36             ` Wolfgang Denk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200802041137.00538.sr@denx.de \
    --to=sr@denx.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox