home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.compilers      Compiler construction, theory, etc. (Mod      2,753 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 773 of 2,753   
   Jeff Kenton to shafi   
   Re: Fixed point support for GCC cross co   
   20 Aug 06 23:51:53   
   
   From: jeffrey.kenton@comcast.net   
      
   shafi wrote:   
   > 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 need to separate several issues:   
      
   1. internal number format/precision and run-time support.  You have to   
   design and implement this no matter what other choices you make.  Do it   
   first.  It's not that hard, although division isn't 100% intuitive --   
   see Knuth or various other sources for details (Google is your friend   
   here, along with comp.arch.arithmetic).   
      
   2. compiler support for fixed point constants.  also simple.   
      
   3. compiler support for fixed point expressions, casting and rules for   
   mixing of types.   
      
   4. fixed point I/O -- what do you want printf() to do?   
      
   Have fun.   
      
   jeff   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca