* Software floating point
@ 2003-02-05 23:21 Chien-Lung Wu
2003-02-06 10:51 ` Ralf Baechle
0 siblings, 1 reply; 4+ messages in thread
From: Chien-Lung Wu @ 2003-02-05 23:21 UTC (permalink / raw)
To: 'linux-mips@linux-mips.org'
Hi,
I am building a cross-compiler for mips-linux on my linux box.
Everything seems fine, except software floating point.
How can I turn on the software floating point when I build the glibc?
Is software floating point are supported in libm.a/libm.so or ant other
lib*?
Thanks for your help.
Chien-Lung
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Software floating point
2003-02-05 23:21 Software floating point Chien-Lung Wu
@ 2003-02-06 10:51 ` Ralf Baechle
0 siblings, 0 replies; 4+ messages in thread
From: Ralf Baechle @ 2003-02-06 10:51 UTC (permalink / raw)
To: Chien-Lung Wu; +Cc: 'linux-mips@linux-mips.org'
On Wed, Feb 05, 2003 at 06:21:34PM -0500, Chien-Lung Wu wrote:
> I am building a cross-compiler for mips-linux on my linux box.
> Everything seems fine, except software floating point.
> How can I turn on the software floating point when I build the glibc?
> Is software floating point are supported in libm.a/libm.so or ant other
> lib*?
The kernel includes a floating point emulator so your hard fp code will
run fine on fpu-less code.
Ralf
^ permalink raw reply [flat|nested] 4+ messages in thread
* Problems of the corss-compiler.
@ 2000-08-28 17:17 Seong-kyu Ko
2000-08-28 18:04 ` Cal Erickson
0 siblings, 1 reply; 4+ messages in thread
From: Seong-kyu Ko @ 2000-08-28 17:17 UTC (permalink / raw)
To: linuxppc-embedded
Hi everyone.
First, I'm sorry for my weak English.
Well, Now I build a powerpc cross-compiler.
so I compiled some binary using that cross-compiler, but
I have some problems.
I think cross-compiler is not problem.
because I compile kernel with that cross-compiler, and
kernel runs good.
but, init, shell etc thease binaries have some problems.
shell cant recieve argument, and some binaries print 'segmentation fault'
I don't know why my compiler can't compile well.
These are the packages that I used.
1. binutils-2.10
2. gcc-2.95.2
3. glibc-2.1.3 (add-ons : glibc-crypt-2.1, glibc-linuxthreads-2.1.3)
First, I compile the binutils for powerpc cpu.
Second, I build cross compiler with gcc.
Third, I compile glibc for powerpc with cross compiler that I made.
Last, I re-build cross compiler include glibc for library.
Please tell me what do you think about that And why the problem happen.
I'll wait your answers.
thank you.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Problems of the corss-compiler.
2000-08-28 17:17 Problems of the corss-compiler Seong-kyu Ko
@ 2000-08-28 18:04 ` Cal Erickson
2000-08-29 4:11 ` software floating point ÁֹαÔ
0 siblings, 1 reply; 4+ messages in thread
From: Cal Erickson @ 2000-08-28 18:04 UTC (permalink / raw)
To: Seong-kyu Ko; +Cc: linuxppc-embedded
Seong-kyu,
In the MSR of the PPC processor there is a bit
that indicates whether there is hardware
floating point unit available. This bit should
be set in the state to turn hardware floating
point off when not present. In my experience
even on PowerPC cpus which have hardware
floating point some people do not need or
want to use it. So they make sure that the
MSR is set properly.
That being said, it is important to either make
sure that bit is always set properly or provide
the proper library routines to make sure that
you are getting the desired results. For instance,
the 8xx family of PPC does not have floating point
hardware. So you provide libraries that do
software floating point. The one area where
this comes into play is when using va_args in the
runtime of the C-library. It is typical to save the
registers and the floating point state upon
entry. If the routine does not check the MSR bit
and branch around the floating point state
save code then the system will crash as a
result of the floating point instructions. So the fix
is to eliminate that code from the library and not
depend on the state of the MSR bit. This makes
it necessary to have a special library for the 8xx
family of PPC processors.
Cal
Seong-kyu Ko wrote:
> Hi everyone.
> First, I'm sorry for my weak English.
>
> Well, Now I build a powerpc cross-compiler.
> so I compiled some binary using that cross-compiler, but
> I have some problems.
>
> I think cross-compiler is not problem.
> because I compile kernel with that cross-compiler, and
> kernel runs good.
>
> but, init, shell etc thease binaries have some problems.
> shell cant recieve argument, and some binaries print 'segmentation fault'
>
> I don't know why my compiler can't compile well.
>
> These are the packages that I used.
> 1. binutils-2.10
> 2. gcc-2.95.2
> 3. glibc-2.1.3 (add-ons : glibc-crypt-2.1, glibc-linuxthreads-2.1.3)
>
> First, I compile the binutils for powerpc cpu.
> Second, I build cross compiler with gcc.
> Third, I compile glibc for powerpc with cross compiler that I made.
> Last, I re-build cross compiler include glibc for library.
>
> Please tell me what do you think about that And why the problem happen.
> I'll wait your answers.
> thank you.
>
--
===========================================================================
Cal Erickson MontaVista Software Inc.
Customer Support Engineer 490 Potrero Avenue
Phone (408) 328-0304 Sunnyvale CA 94085
Fax (408) 328-9204 e-mail cal_erickson@mvista.com
Pager 877-566-2012 support 1-800-759-8888 pin 202-7489
web http://www.mvista.com support e-mail: support@mvista.com
eCode: http://cal@work.com.ecode.com
===========================================================================
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* software floating point
2000-08-28 18:04 ` Cal Erickson
@ 2000-08-29 4:11 ` ÁֹαÔ
2000-08-29 4:48 ` Graham Stoney
0 siblings, 1 reply; 4+ messages in thread
From: ÁÖ¹Î±Ô @ 2000-08-29 4:11 UTC (permalink / raw)
To: cal_erickson; +Cc: linuxppc-embedded
I have some questions...about soft-floating point...
I use MPC860, and I made cross develop enviroment.
Host is i386 machine. Target is MPC860.
package that I use
1. binutils-2.10
2. gcc-2.95.2
3. glibc-2.1.3 (add-ons : glibc-crypt-2.1, glibc-linuxthreads-2.1.3)
I did following steps..
First, I compile the binutils for powerpc cpu.
Second, I build cross compiler with gcc.
Third, I compile glibc for powerpc with cross compiler that I made.
Last, I re-build cross compiler include glibc for library.
When compile third step, shoud I use some options to support software floating point?
or shoud I edit some code to support software floating point?
To support software floating point, which steps should I use some special options in above steps and what option is it need?
Thank u for reading my terrible english...^ ^
Take care...
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: software floating point
2000-08-29 4:11 ` software floating point ÁֹαÔ
@ 2000-08-29 4:48 ` Graham Stoney
0 siblings, 0 replies; 4+ messages in thread
From: Graham Stoney @ 2000-08-29 4:48 UTC (permalink / raw)
To: AV9N1T; +Cc: cal_erickson, linuxppc-embedded
=?iso-8859-1?B?wda5zrHU?= writes:
> I have some questions...about soft-floating point...
I suggest you read the section in the HOWTO on the subject, at:
http://members.xoom.com/greyhams/linux/PowerPC-Embedded-HOWTO-13.html
> When compile third step, shoud I use some options to support software floating point?
You need to configure the compiler to make -msoft-float the default in step 2,
and apply the glibc patch to make it work correctly on the 860 before you do
step 3.
> To support software floating point, which steps should I use some special options in above steps and what option is it need?
The options are mentioned in the HOWTO.
Regards,
Graham
--
Graham Stoney
Principal Hardware/Software Engineer
Canon Information Systems Research Australia
Ph: +61 2 9805 2909 Fax: +61 2 9805 2929
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-02-06 10:51 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-05 23:21 Software floating point Chien-Lung Wu
2003-02-06 10:51 ` Ralf Baechle
-- strict thread matches above, loose matches on Subject: below --
2000-08-28 17:17 Problems of the corss-compiler Seong-kyu Ko
2000-08-28 18:04 ` Cal Erickson
2000-08-29 4:11 ` software floating point ÁֹαÔ
2000-08-29 4:48 ` Graham Stoney
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.