This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: i386 Software FP
- To: "erik.ivanenko" <erik dot ivanenko at utoronto dot ca>
- Subject: Re: i386 Software FP
- From: Jeffrey A Law <law at upchuck dot cygnus dot com>
- Date: Fri, 30 Apr 1999 23:52:35 -0600
- cc: "egcs at egcs dot cygnus dot com" <egcs at egcs dot cygnus dot com>
- Reply-To: law at cygnus dot com
In message <3729D5C5.9C608865@utoronto.ca>you write:
> This is a multi-part message in MIME format.
> --------------1B570572036FEFCD52AD1C7E
> Content-Type: text/plain; charset=us-ascii
> Content-Transfer-Encoding: 7bit
>
> How can software FP be enabled for an egcs cross-compiler?
>
> Host: Solaris 2.6 Target: i386-coff or preferably i386-elf ( w/ RTEMS on
> target) .
>
> I have obtained a patch for i386-coff, but paranoia either fails to
> exponentiate properly, or hangs the target. I'd much prefer i386-elf,
> but I don't know how to enable there at all...
Depends on precisely what you want to do.
All x86 compilers come with the ability to use either hardware or software
floating point. However, I believe all _default_ to hardware floating point.
You can force the compiler to generate software floating point by using the
-msoft-float switch (RTFM).
If you need to change the default behavior of the compiler, then you are likely
going to have to create custom configuration files which do not enable the
hardware floating point by default.
jeff