Re: adding floating point support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Navid Toosizadeh <navid_toosizadeh@xxxxxxxxx> writes:

> Assume that we have gcc compiler for a target, and the gcc does not
> support floating point, but integers. Is there a simpler way rather
> than rebuilding the gcc to add support for floating point, for
> example by compiling fp-bit.c?  So basically, I'm asking for steps
> to add floating point support without going the difficult path of
> rebuildong and modifying gcc.

I'm not sure what you mean when you say that gcc doesn't support
floating point.  The normal gcc releases always support floating
point.  If the processor does not have any floating point
instructions, then gcc generates calls to runtime library routines.
Those runtime library routines are generally found in libgcc, and are
often compiled from config/fp-bit.c or from config/soft-fp/* or from
hand-written assembler code.  The first two choices should work even
for an unusual target.

Ian

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux