Skip to contentSkip to conversation

MPC8xx fpu support and compiling glib.

DISCUSSION Conn Clark 2 participants 2 messages Apr 11, 2002 – Apr 12, 2002

lore
Share & tools
lore

Conn Clark

author
#0 lore raw

Hello All,

I was wondering a few things about MPC8xx FPU support. If
I build a kernel with fpu-emulation do I have to pass the CFLAGS "-msoft-float -D_SOFT_FLOAT" when compiling glibc? Does it save me any ram if I don't? I know if I don't my performance will drop but our aplication doesn't use floating point except for ping mabey.

Thanks in advance,

Conn
--

*****************************************************************
If you live at home long enough, your parents will move out.
*****************************************************************

Conn Clark
Engineering Stooge [email protected]
Electronic Systems Technology Inc. www.esteem.com

Stock Ticker Symbol ELST

"[email protected]" Copyright 2000 By Electronic Systems Technology
This email address may be used to communicate to Conn Clark provided it is not being used for advertisement purposes, unless prior written consent is given. This email address may not be sold under any circumstances. All other rights reserved.

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

#1 lore raw
Quoted 3 lines · In message <[email protected]> you wrote:

I was wondering a few things about MPC8xx FPU support. If
I build a kernel with fpu-emulation do I have to pass the CFLAGS

That makes only sense when your application AND libraies DO NOT use soft-float.

Quoted 1 line

"-msoft-float -D_SOFT_FLOAT" when compiling glibc? Does it save me

You cannot mix FPU-code and soft-float in one application/library setup.

Quoted 2 lines

any ram if I don't? I know if I don't my performance will drop but our aplication doesn't use floating point except for ping mabey.

Ummm... why should soft-float result in _smaller_ code? On contrary - the code will be bigger, but run faster since you don;t have to trap into the kernel for each FP instruction.

Wolfgang Denk

--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: [email protected] To know how another being, another creature feels - that is impos-
sible. - Terry Pratchett, _The Dark Side of the Sun_

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