public inbox for linuxppc-dev@ozlabs.org
 help / color / mirror / Atom feed
From: Peter Bergner <bergner@vnet.ibm.com>
To: Wolfgang Denk <wd@denx.de>
Cc: linuxppc-dev@ozlabs.org
Subject: Re: Mixing hard and soft floating point?
Date: Sun, 18 Oct 2009 19:57:24 -0500	[thread overview]
Message-ID: <1255913844.4930.4.camel@otta> (raw)
In-Reply-To: <20091017193454.7978FF15432@gemini.denx.de>

On Sat, 2009-10-17 at 21:34 +0200, Wolfgang Denk wrote:
> Dear Joakim Tjernlund,
> > OK, but then you don't mix some libs/apps with soft and other
> > apps/libs with hard FP?
> 
> No, we never tried that. Sounds scary to me.

And dangerous.  Hard-float and soft-float are ABI incompatible, so you
cannot mix and match obj files and libs compiled with those two options.
They all have to be hard-float or they all have to be soft-float.
Think about a function compiled with hard-float calling a soft-float
libm routine.  The hard-float routine will pass its args in via FP
regs and the soft-float lib routine will be looking for them in the
integer registers.

Peter

      parent reply	other threads:[~2009-10-19  0:57 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-17 12:14 Mixing hard and soft floating point? Joakim Tjernlund
2009-10-17 18:12 ` Wolfgang Denk
2009-10-17 18:24   ` Joakim Tjernlund
2009-10-17 19:34     ` Wolfgang Denk
2009-10-18 11:28       ` Joakim Tjernlund
2009-10-18 13:10         ` Wolfgang Denk
2009-10-19  0:57       ` Peter Bergner [this message]

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=1255913844.4930.4.camel@otta \
    --to=bergner@vnet.ibm.com \
    --cc=linuxppc-dev@ozlabs.org \
    --cc=wd@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