All of lore.kernel.org
 help / color / mirror / Atom feed
From: Brent Cook <bcook@bpointsys.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] software FP yada yada yada
Date: Thu, 12 Oct 2006 16:57:48 -0500	[thread overview]
Message-ID: <200610121657.48795.bcook@bpointsys.com> (raw)
In-Reply-To: <006b01c6ee47$b1534170$0d68fe51@atmel.com>

On Thursday 12 October 2006 16:44, Ulf Samuelsson wrote:
> >> According to the crosstool documentation at www.kegel.com:
> >>
> >> Most combinations of gcc 3.x.x and binutils fails when you try to build
> >> a softfloat toolchain All tested combinations of gcc-4.x.x and binutils
> >> fails if softfloat is enabled. If you want to use gcc 4, you cannot
> >> build u-boot as is.
> >
> > FYI, I have successfully used GCC 4.1.1 and binutils 2.16.1 to build not
> > only a working armv5teb softfloat toolchain (with glibc 2.4 to boot), but
> > also build and use u-boot 1.1.4 and the latest git head with no problems
> > at all.
> >
> > Granted, I built the toolchain from scratch - it takes a number of tweaks
> > to build correctly, all of which are not in crosstool.
>
> Is there any true benefit of using a softfloat toochain?
> The number of floating point operation is surely minimal in U.boot.
> Anyone got an idea if there is any code saving.
>
> Best Regards
> Ulf Samuelsson

It's pretty darn minimal in u-boot. If you build Linux with this toolchain 
however, and have a non-trivial number of floating point operations in your 
application code, you could end up causing a lot of processor exceptions, 
which get caught by the kernel and run through the FP emulator. The gist 
would be that userland code has to do a context switch to the kernel for 
every FP operation if you build with a hard-float toolchain. With a 
soft-float toolchain, it stays in userland, and is a bit faster and more 
efficient (as efficient as soft floating point can be.)

 - Brent

  reply	other threads:[~2006-10-12 21:57 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-12 20:00 [U-Boot-Users] software FP yada yada yada Matt Gessner
2006-10-12 20:30 ` Wolfgang Denk
2006-10-12 20:49   ` Ulf Samuelsson
2006-10-12 21:35     ` Brent Cook
2006-10-12 21:44       ` Ulf Samuelsson
2006-10-12 21:57         ` Brent Cook [this message]
2006-10-12 21:48     ` Leonid
2006-10-12 23:16     ` Wolfgang Denk
2006-10-13  4:44       ` Ulf Samuelsson
2006-10-13  7:54         ` Robert Schwebel
  -- strict thread matches above, loose matches on Subject: below --
2006-10-12 20:32 Matt Gessner
2006-10-12 21:02 ` 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=200610121657.48795.bcook@bpointsys.com \
    --to=bcook@bpointsys.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 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.