Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* ARM linux mailing lists FAQ about floating point support.
@ 2009-09-10 18:49 Gilles Chanteperdrix
  2009-09-10 20:25 ` Nicolas Pitre
  0 siblings, 1 reply; 10+ messages in thread
From: Gilles Chanteperdrix @ 2009-09-10 18:49 UTC (permalink / raw)
  To: linux-arm-kernel


Hi,

It seems the FAQ here:
http://www.arm.linux.org.uk/mailinglists/faq.php#f4

is a bit outdated, since it does not mention that EABI solves the issue.

Regards.

-- 
					    Gilles.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* ARM linux mailing lists FAQ about floating point support.
  2009-09-10 18:49 ARM linux mailing lists FAQ about floating point support Gilles Chanteperdrix
@ 2009-09-10 20:25 ` Nicolas Pitre
  2009-09-10 20:27   ` Gilles Chanteperdrix
  0 siblings, 1 reply; 10+ messages in thread
From: Nicolas Pitre @ 2009-09-10 20:25 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, 10 Sep 2009, Gilles Chanteperdrix wrote:

> 
> Hi,
> 
> It seems the FAQ here:
> http://www.arm.linux.org.uk/mailinglists/faq.php#f4
> 
> is a bit outdated, since it does not mention that EABI solves the issue.

And just how would EABI solve the issue?


Nicolas

^ permalink raw reply	[flat|nested] 10+ messages in thread

* ARM linux mailing lists FAQ about floating point support.
  2009-09-10 20:25 ` Nicolas Pitre
@ 2009-09-10 20:27   ` Gilles Chanteperdrix
  2009-09-10 20:35     ` Nicolas Pitre
  0 siblings, 1 reply; 10+ messages in thread
From: Gilles Chanteperdrix @ 2009-09-10 20:27 UTC (permalink / raw)
  To: linux-arm-kernel

Nicolas Pitre wrote:
> On Thu, 10 Sep 2009, Gilles Chanteperdrix wrote:
> 
>> Hi,
>>
>> It seems the FAQ here:
>> http://www.arm.linux.org.uk/mailinglists/faq.php#f4
>>
>> is a bit outdated, since it does not mention that EABI solves the issue.
> 
> And just how would EABI solve the issue?

By allowing to mix soft-float and hard-float programs with only one libc?

-- 
					    Gilles.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* ARM linux mailing lists FAQ about floating point support.
  2009-09-10 20:27   ` Gilles Chanteperdrix
@ 2009-09-10 20:35     ` Nicolas Pitre
  2009-09-10 20:44       ` Gilles Chanteperdrix
  2009-09-10 20:54       ` Gilles Chanteperdrix
  0 siblings, 2 replies; 10+ messages in thread
From: Nicolas Pitre @ 2009-09-10 20:35 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, 10 Sep 2009, Gilles Chanteperdrix wrote:

> Nicolas Pitre wrote:
> > On Thu, 10 Sep 2009, Gilles Chanteperdrix wrote:
> > 
> >> Hi,
> >>
> >> It seems the FAQ here:
> >> http://www.arm.linux.org.uk/mailinglists/faq.php#f4
> >>
> >> is a bit outdated, since it does not mention that EABI solves the issue.
> > 
> > And just how would EABI solve the issue?
> 
> By allowing to mix soft-float and hard-float programs with only one libc?

Err... How?


Nicolas

^ permalink raw reply	[flat|nested] 10+ messages in thread

* ARM linux mailing lists FAQ about floating point support.
  2009-09-10 20:35     ` Nicolas Pitre
@ 2009-09-10 20:44       ` Gilles Chanteperdrix
  2009-09-10 20:57         ` Nicolas Pitre
  2009-09-10 20:54       ` Gilles Chanteperdrix
  1 sibling, 1 reply; 10+ messages in thread
From: Gilles Chanteperdrix @ 2009-09-10 20:44 UTC (permalink / raw)
  To: linux-arm-kernel

Nicolas Pitre wrote:
> On Thu, 10 Sep 2009, Gilles Chanteperdrix wrote:
> 
>> Nicolas Pitre wrote:
>>> On Thu, 10 Sep 2009, Gilles Chanteperdrix wrote:
>>>
>>>> Hi,
>>>>
>>>> It seems the FAQ here:
>>>> http://www.arm.linux.org.uk/mailinglists/faq.php#f4
>>>>
>>>> is a bit outdated, since it does not mention that EABI solves the issue.
>>> And just how would EABI solve the issue?
>> By allowing to mix soft-float and hard-float programs with only one libc?
> 
> Err... How?

Well, I read somewhere that EABI allows mixing soft-float and hard-float
code and must have assumed it was true. But you made me doubt.

But since compiling both a hard-float program and a soft-float program
with the same toolchain does not produce any compilation or link-edition
error, I still tend to think it is true.

I just need to run the test on actual hardware to finish checking.

-- 
					    Gilles.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* ARM linux mailing lists FAQ about floating point support.
  2009-09-10 20:35     ` Nicolas Pitre
  2009-09-10 20:44       ` Gilles Chanteperdrix
@ 2009-09-10 20:54       ` Gilles Chanteperdrix
  2009-09-10 21:03         ` Nicolas Pitre
  1 sibling, 1 reply; 10+ messages in thread
From: Gilles Chanteperdrix @ 2009-09-10 20:54 UTC (permalink / raw)
  To: linux-arm-kernel

Nicolas Pitre wrote:
> On Thu, 10 Sep 2009, Gilles Chanteperdrix wrote:
> 
>> Nicolas Pitre wrote:
>>> On Thu, 10 Sep 2009, Gilles Chanteperdrix wrote:
>>>
>>>> Hi,
>>>>
>>>> It seems the FAQ here:
>>>> http://www.arm.linux.org.uk/mailinglists/faq.php#f4
>>>>
>>>> is a bit outdated, since it does not mention that EABI solves the issue.
>>> And just how would EABI solve the issue?
>> By allowing to mix soft-float and hard-float programs with only one libc?
> 
> Err... How?

Right, it does not work, so, what does:
"Allows the mixing of softfloat and hardfloat code"

is supposed to mean here for instance:
http://www.eurotech-inc.com/embedded-eabi-linux.asp

-- 
					    Gilles.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* ARM linux mailing lists FAQ about floating point support.
  2009-09-10 20:44       ` Gilles Chanteperdrix
@ 2009-09-10 20:57         ` Nicolas Pitre
  0 siblings, 0 replies; 10+ messages in thread
From: Nicolas Pitre @ 2009-09-10 20:57 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, 10 Sep 2009, Gilles Chanteperdrix wrote:

> Nicolas Pitre wrote:
> > On Thu, 10 Sep 2009, Gilles Chanteperdrix wrote:
> > 
> >> Nicolas Pitre wrote:
> >>> On Thu, 10 Sep 2009, Gilles Chanteperdrix wrote:
> >>>
> >>>> Hi,
> >>>>
> >>>> It seems the FAQ here:
> >>>> http://www.arm.linux.org.uk/mailinglists/faq.php#f4
> >>>>
> >>>> is a bit outdated, since it does not mention that EABI solves the issue.
> >>> And just how would EABI solve the issue?
> >> By allowing to mix soft-float and hard-float programs with only one libc?
> > 
> > Err... How?
> 
> Well, I read somewhere that EABI allows mixing soft-float and hard-float
> code and must have assumed it was true. But you made me doubt.
> 
> But since compiling both a hard-float program and a soft-float program
> with the same toolchain does not produce any compilation or link-edition
> error, I still tend to think it is true.

Well, actually it seems that gcc can only do -mfloat-abi=softfp and 
surprizingly -mfloat-abi=hard is unimplemented for VFP.  So in that case 
mixing soft and hard float objects is fine.


Nicolas

^ permalink raw reply	[flat|nested] 10+ messages in thread

* ARM linux mailing lists FAQ about floating point support.
  2009-09-10 20:54       ` Gilles Chanteperdrix
@ 2009-09-10 21:03         ` Nicolas Pitre
  2009-09-10 21:15           ` Laurent Desnogues
  0 siblings, 1 reply; 10+ messages in thread
From: Nicolas Pitre @ 2009-09-10 21:03 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, 10 Sep 2009, Gilles Chanteperdrix wrote:

> Right, it does not work, so, what does:
> "Allows the mixing of softfloat and hardfloat code"
> 
> is supposed to mean here for instance:
> http://www.eurotech-inc.com/embedded-eabi-linux.asp

As I just posted, it looks like gcc only implemented the soft-float ABI 
when using VFP.  So if your CPU is VFP capable then using 
-mfloat-abi=softfp should produce actual VFP instructions while still 
passing function arguments around using non VFP registers.


Nicolas

^ permalink raw reply	[flat|nested] 10+ messages in thread

* ARM linux mailing lists FAQ about floating point support.
  2009-09-10 21:03         ` Nicolas Pitre
@ 2009-09-10 21:15           ` Laurent Desnogues
  2009-09-10 21:25             ` Nicolas Pitre
  0 siblings, 1 reply; 10+ messages in thread
From: Laurent Desnogues @ 2009-09-10 21:15 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, Sep 10, 2009 at 11:03 PM, Nicolas Pitre <nico@cam.org> wrote:
> On Thu, 10 Sep 2009, Gilles Chanteperdrix wrote:
>
>> Right, it does not work, so, what does:
>> "Allows the mixing of softfloat and hardfloat code"
>>
>> is supposed to mean here for instance:
>> http://www.eurotech-inc.com/embedded-eabi-linux.asp
>
> As I just posted, it looks like gcc only implemented the soft-float ABI
> when using VFP. ?So if your CPU is VFP capable then using
> -mfloat-abi=softfp should produce actual VFP instructions while still
> passing function arguments around using non VFP registers.

Didn't latest CodeSourcery ARM toolchain (2009q1) add hardfp?


Laurent

^ permalink raw reply	[flat|nested] 10+ messages in thread

* ARM linux mailing lists FAQ about floating point support.
  2009-09-10 21:15           ` Laurent Desnogues
@ 2009-09-10 21:25             ` Nicolas Pitre
  0 siblings, 0 replies; 10+ messages in thread
From: Nicolas Pitre @ 2009-09-10 21:25 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, 10 Sep 2009, Laurent Desnogues wrote:

> On Thu, Sep 10, 2009 at 11:03 PM, Nicolas Pitre <nico@cam.org> wrote:
> > On Thu, 10 Sep 2009, Gilles Chanteperdrix wrote:
> >
> >> Right, it does not work, so, what does:
> >> "Allows the mixing of softfloat and hardfloat code"
> >>
> >> is supposed to mean here for instance:
> >> http://www.eurotech-inc.com/embedded-eabi-linux.asp
> >
> > As I just posted, it looks like gcc only implemented the soft-float ABI
> > when using VFP. ?So if your CPU is VFP capable then using
> > -mfloat-abi=softfp should produce actual VFP instructions while still
> > passing function arguments around using non VFP registers.
> 
> Didn't latest CodeSourcery ARM toolchain (2009q1) add hardfp?

I don't know.  If so then the FAQ entry about not being able to mix 
hard-float and soft-float would still apply when using that mode.


Nicolas

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2009-09-10 21:25 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-10 18:49 ARM linux mailing lists FAQ about floating point support Gilles Chanteperdrix
2009-09-10 20:25 ` Nicolas Pitre
2009-09-10 20:27   ` Gilles Chanteperdrix
2009-09-10 20:35     ` Nicolas Pitre
2009-09-10 20:44       ` Gilles Chanteperdrix
2009-09-10 20:57         ` Nicolas Pitre
2009-09-10 20:54       ` Gilles Chanteperdrix
2009-09-10 21:03         ` Nicolas Pitre
2009-09-10 21:15           ` Laurent Desnogues
2009-09-10 21:25             ` Nicolas Pitre

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox