linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Mark Hatle <fray@mvista.com>
To: "Dr. Craig Hollabaugh" <craig@hollabaugh.com>
Cc: Mark Pilon <mark.pilon@minolta-qms.com>,
	linuxppc-embedded@lists.linuxppc.org
Subject: Re: init fails w/ new build of gcc & glibc
Date: Fri, 17 Aug 2001 17:22:25 -0500	[thread overview]
Message-ID: <3B7D9921.8CB7F6AE@mvista.com> (raw)
In-Reply-To: 5.1.0.14.0.20010817160848.00abfec0@spudcentral.com


> Mark,
>
> You mentioned these two exclusive ABIs a couple days ago. If you want to compile the
> toolchain and the kernel correctly to insure run-time compatibility (in my case for 8xx),
> would you do this
>
> for kernel fp emulation
> compile kernel with CONFIG_MATH_EMULATION=y, (do you use -msoft-float while compiling
> kernel?)
> then compile the toolchain without -msoft-float

Use the kernel parameters as they stand, I wouldn't mess with them....
(floating point is not supposed to happen in the kernel anyway, and when
it does it's almost always assembly that is trapped anyway.)

> or
>
> for soft-floating point - no kernel emulation
> compile kernel CONFIG_MATH_EMULATION is not set (do you use -msoft-float while compiling kernel?)
> then compile the toolchain with -msoft-float

Basically.. One thing to keep in mind on the 8xx (due to cache line
size) it'll never truely be compatable with the rest of the PPC world.
But on a processor like the 405 it "can be" compatable using the
CONFIG_MATH_EMULATION.  The catch is that you have a lot more overhead
doing emulation.... (The emulation itself is pretty fast, certainly no
slower then the software code invoked in -msoft-float..)  However, you
have much more context switching over head and possible cache
invalidation.  Also, your software could be using floating point
registers w/o you expliciting using float's or double's due to gcc
optimizations to argument passing.  All in all you will have a penalty
for using hard floating point on a soft-floating point architecture.

This is the reason that MontaVista has chosen to go the route of
soft-float...

--Mark

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

  reply	other threads:[~2001-08-17 22:22 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-17 20:47 init fails w/ new build of gcc & glibc Mark Pilon
2001-08-17 21:48 ` Mark Hatle
2001-08-17 22:16   ` Dr. Craig Hollabaugh
2001-08-17 22:22     ` Mark Hatle [this message]
2001-08-17 22:28       ` Joe Green
2001-08-17 22:54       ` Dr. Craig Hollabaugh
2001-08-17 23:15         ` Mark Hatle
2001-08-17 23:29           ` Dr. Craig Hollabaugh
2001-08-17 21:50 ` Joe Green
2001-08-17 22:07 ` Dr. Craig Hollabaugh

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=3B7D9921.8CB7F6AE@mvista.com \
    --to=fray@mvista.com \
    --cc=craig@hollabaugh.com \
    --cc=linuxppc-embedded@lists.linuxppc.org \
    --cc=mark.pilon@minolta-qms.com \
    /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;
as well as URLs for NNTP newsgroup(s).