This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: i386 Software FP



  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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]