Re: Fixed point support for GCC cross compiler

"Eric" <englere_geo@yahoo.com>
18 Aug 2006 01:15:02 -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: "Eric" <englere_geo@yahoo.com>
Newsgroups: comp.compilers
Date: 18 Aug 2006 01:15:02 -0400
Organization: http://groups.google.com
References: 06-08-08306-08-097
Keywords: GCC, types
Posted-Date: 18 Aug 2006 01:15:02 EDT

shafi wrote:
> 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)


My original comments assumed you didn't want to redefine floats or
doubles. If you're willing to redefine floats by linking to a new
fixed-point library that might work.


You could give people a choice of linking to your fixed point lib, or
to a standard floating point lib. You'd have to go with a fixed number
of decimal places though, or else the front-end of the compiler would
have to be changed to support a new syntax.


I can't give you the details on how to do it because I'm not an expert
on the GNU tools. I think there's a forum specifically for gcc people
and that might be a good place to ask this question. Look around at the
main GNU site for a link to their forum.


Eric


Post a followup to this message

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