Re: Fixed point support for GCC cross compiler

Ian Lance Taylor <ian@airs.com>
18 Aug 2006 00:57:35 -0400

          From comp.compilers

Related articles
Fixed point support for GCC cross compiler shafitvm@gmail.com (shafi) (2006-08-15)
Re: Fixed point support for GCC cross compiler englere_geo@yahoo.com (Eric) (2006-08-15)
Re: Fixed point support for GCC cross compiler ian@airs.com (Ian Lance Taylor) (2006-08-18)
Re: Fixed point support for GCC cross compiler mailbox@dmitry-kazakov.de (Dmitry A. Kazakov) (2006-08-18)
Re: Fixed point support for GCC cross compiler adm@standarddeviance.com (thant) (2006-08-18)
Re: Fixed point support for GCC cross compiler gene.ressler@gmail.com (Gene) (2006-08-18)
Re: Fixed point support for GCC cross compiler englere_geo@yahoo.com (Eric) (2006-08-18)
Re: Fixed point support for GCC cross compiler jeffrey.kenton@comcast.net (Jeff Kenton) (2006-08-20)
| List of all articles for this month |

From: Ian Lance Taylor <ian@airs.com>
Newsgroups: comp.compilers
Date: 18 Aug 2006 00:57:35 -0400
Organization: Compilers Central
References: 06-08-083
Keywords: GCC, types
Posted-Date: 18 Aug 2006 00:57:35 EDT

"shafi" <shafitvm@gmail.com> writes:


> I am involved with the porting of GCC for a new arm processor.
> The trouble is that I have to add a feature which is not supported by
> GCC - Fixed point support.
> You know adding a new support along with porting is going to be tough.
>
> Someone told me that one can add support in two ways.
> 1. Include the support through the compiler (change the internals).
> 2. Outside the compiler, through a library. (library support)
>
> I am not sure which one to pursue. The processor has a dedicated
> hardware support for fixed point operations. Providing the support
> through a library is a good option when this is so?
>
> Could anyone tell me which will be the best approach?
> and why it is so?
>
> or better could anyone give me an example so that I can use it as a
> reference
> while porting?


Ben Elliston and others from IBM recently added support for decimal
floating point to gcc. That would probably be a good guide for adding
support for fixed point arithmetic.


This is what they wrote when the started:
        http://gcc.gnu.org/wiki/Decimal_Floating-Point


Ian



Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.