public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Peter Tyser <ptyser@xes-inc.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] Replace references to extern console_buffer	with a function call
Date: Fri, 15 Aug 2008 17:27:33 -0500	[thread overview]
Message-ID: <1218839253.1273.148.camel@localhost.localdomain> (raw)
In-Reply-To: <20080815213554.900CE243AB@gemini.denx.de>

> > I'm not sure if the debug console will be accepted to mainline, but
> I
> > think this patch alone is an improvement over the current
> implementation
> 
> Frankly, I don't think so - it just makes the code bigger for no good
> use to 99.9% of the users.
> 
> > of using a global string and multiple external console_buffer
> > references.  I've always thought global variables should be avoided if
> > there is a reasonable alternative
> 
> But this is a boot loader, and size matters.

I had assumed gcc/ld would be smart enough to optimize the function call
away, seeing as there is no conditional code in it.  I just tested, and
the size was increased by 48 bytes for the MPC8548CDS reference board
after applying the patch.  Inlining the console_buffer_addr() didn't get
rid of the 48 bytes of bloat.

I guess this patch's fate will be the same as "[RFC] Add support for
early serial debug console"...

Thanks,
Peter

  reply	other threads:[~2008-08-15 22:27 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-15 19:49 [U-Boot] [PATCH] Replace references to extern console_buffer with a function call Peter Tyser
2008-08-15 20:05 ` Wolfgang Denk
2008-08-15 20:25   ` Peter Tyser
2008-08-15 21:35     ` Wolfgang Denk
2008-08-15 22:27       ` Peter Tyser [this message]
2008-08-16  7:50         ` 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=1218839253.1273.148.camel@localhost.localdomain \
    --to=ptyser@xes-inc.com \
    --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