public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Angelo Dureghello <sysamfw@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] common/xyzmodem.c, ymodem, slow behavior receiving bytes
Date: Wed, 14 Nov 2012 10:47:07 +0100	[thread overview]
Message-ID: <20121114094706.GA5697@angel3> (raw)
In-Reply-To: <20121113070919.796A02002E1@gemini.denx.de>

Hi Wolfgang and all,

On Tue, Nov 13, 2012 at 08:09:19AM +0100, Wolfgang Denk wrote:
> Dear Angelo Dureghello,
> 
> please don't top-post / full quote.
> 

Ack.

> I am really surprised about your claim that the -O2 compiled code is
> actually running faster than the -Os compiled one on a low-end system
> as yours (90 MHz CPU clock, 8 kB cache size).
> 
> Which exact tool chain are you using to build the code?

I tested 2 different toolchains, 

m68k-elf-gcc (Sourcery CodeBench Lite 2011.09-21) 4.6.1

and another older downloaded from uClinux site, based on 

m68k-elf-gcc (GCC) 4.2.4

Nothing change, issue is the same.

> 
> > Also, i don't understand why "-g" is set by default. 
> 
> It is set because it is useful to some (those in the need of debugging
> their code) and does not hurt others.
> 

My question becouse sometime embedded programmers fight for a bite free 
in the flash. On limited boards like mine (4M Flash) once kernel and 
some apps are stored, very small size remain for u-boot and some n.v. data 
storage. But no problem for me, i change flags as needed eventually.

> I am not convinced that it makes sense to change settings on a per-cpu
> base.  A 90 MHz CPU should be more than sufficient to receive data at
> 115kbps.  I can only compare against 50 MHz PowerQuicc I systems
> (which is about the lowest end machines I have at hands now), and
> there no such problem exists.
> 

Sure, 20 Mhz boards are able to handle 115200 as well. So there is clearly
something non working properly in my custom board. First thought is the 
sdram not well initialized, resulting in very slow execution of the u-boot 
code. Is there a way in u-boot to test code execution speed ?


Best Regards,
Angelo Dureghello

  reply	other threads:[~2012-11-14  9:47 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-10 13:40 [U-Boot] common/xyzmodem.c, ymodem, slow behavior receiving bytes Angelo Dureghello
2012-11-13  0:16 ` Angelo Dureghello
2012-11-13  1:41   ` Marek Vasut
2012-11-13  7:09   ` Wolfgang Denk
2012-11-14  9:47     ` Angelo Dureghello [this message]
2012-11-14 10:28       ` Henrik Nordström
2012-11-14 11:05       ` Wolfgang Denk
2012-11-19 21:54         ` Angelo Dureghello
2012-11-19 22:58           ` Wolfgang Denk
2012-11-22 14:38             ` Angelo Dureghello
2012-11-23 22:57             ` Angelo Dureghello
2012-11-23 23:04               ` 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=20121114094706.GA5697@angel3 \
    --to=sysamfw@gmail.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