Skip to contentSkip to conversation

ARM soft float

U-Boot-Users Robert Schwebel 2 participants 2 messages Feb 25, 2004

lore
Share & tools
lore
#0 lore raw

Bcc:
Subject: Re: [U-Boot-Users] Where can I find a libgcc.a with software FP. Reply-To:
In-Reply-To: <[email protected]>

Hi,

Quoted 5 lines · Marius Groeger

In practice, however, I have not seen this kind of optimising as of yet. Maybe on ARM there is no gain in performance. Unless there is a proper (read: for all ARM architectures, and working like we know it from powerpc-linux) -msoft-float patch for GCC 3, I'm inclined to just (carefully) drop -msoft-float from *boot.

How do you handle the ARM variants which have a hardware FPU then? I didn't work with a cpu which has one yet, but there are some out there.

Quoted 2 lines

I'm curious about Robert Schwebel's assessment of this issue, since I know he's been workin on this.

We should probably discuss that on crossgcc as there are others like Benedikt Spranger, Marc Kleine-Budde and Dan Kegel, who may give better comments on this than me, I didn't have time to investigate the problem further than trying Nico's patch and integrate it into PTXdist.

Robert

Signature · 5 lines
 Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
 Pengutronix - Linux Solutions for Science and Industry
   Handelsregister:  Amtsgericht Hildesheim, HRA 2686
     Hornemannstra?e 12,  31137 Hildesheim, Germany
    Phone: +49-5121-28619-0 |  Fax: +49-5121-28619-4
#1 lore raw
Quoted 9 lines · Robert Schwebel
Quoted 5 lines · Marius Groeger

In practice, however, I have not seen this kind of optimising as of yet. Maybe on ARM there is no gain in performance. Unless there is a proper (read: for all ARM architectures, and working like we know it from powerpc-linux) -msoft-float patch for GCC 3, I'm inclined to just (carefully) drop -msoft-float from *boot.

How do you handle the ARM variants which have a hardware FPU then? I didn't work with a cpu which has one yet, but there are some out there.

Well, the unpatched gcc assumes a hardware FPU, doesn't it? It appears that the ARM community has relied on their kernel FPEMU for years, unlike the ppclinux folks. (Which still puzzles me, as the kernel FPEMU surely must be a performance eater, don't you agree?)

As far as uboot and this ML is concerned, the real problem is that with the -msoft-float being thrown, the ELF files get labelled "uses soft float", which is not mixable with libgcc, which is labelled "uses hard fp". Regardless, the integer routines uboot is referencing are not affected in the slightest bit, yet they carry the "uses hard fp" stigma. This results in the error message some people report. (Note that the accuracy of the statements in that error message depends on the binutils version.)

Nico's and your gcc patch don't change this, but bring trouble to the non-uboot userland software (most notably binary incompatibility and StrongARM breakage). What the patch does bring, though, is real a true soft float implementation for PXA systems.

Quoted 3 lines

We should probably discuss that on crossgcc as there are others like Benedikt Spranger, Marc Kleine-Budde and Dan Kegel, who may give better comments on this than me, I didn't have time to investigate the problem

Sigh... too many mailing lists. But you're probably right. To be honest, I'm not subscribed to that list yet.

Regards,
Marius

Signature · 9 lines
Marius Groeger <[email protected]>
Project Manager

SYSGO Real-Time Solutions AG | Embedded and Real-Time Software
Am Pfaffenstein 14
55270 Klein-Winternheim, Germany

Voice: +49-6136-9948-0 | FAX: +49-6136-9948-10
www.sysgo.com | www.elinos.com | www.osek.de