At 04:02 PM 27/05/98 +0200, you wrote: >Does anybody has the HiTech C compiler? And of course some example of >code? I ran into problems with the size of the code: the pow function is >taking more than 500bytes of rom... Hu! > > >-- > > _____________ > \ / David BALDWIN > \ ALCATEL / Design engineer > \TELECOM/ > \ / SdM (Societe de Microelectronique) > \ / > \ / B.P. 4205 Phone : +32 (0)71 442932 > V B-6000 Charleroi Fax : +32 (0)71 442905 > (Belgium) mailto:baldwin@etca.alcatel.be > > I think that it should, after all it is basic floating point, and if I remember the actual powers are stored as an array of const doubles of alt least 11 double locations! Also check out the const DBL_MAX_10_EXP, as this will also effect the size of the memory used. If you have a look at the code used, you will see that there is also a const table defined in:- double exp (double), and that the actual function pow also uses a multiply routine. You will find the code used in EXP.C. Without knowing much about the code you are using, I think that the result of 500 bytes is very good indeed. Dennis -=====================================================================- Dennis Plunkett: Embedded Hardware, Software design NEC Australia DRMASS Line Interface cards TRX software ISDN interface card ph 03 9264-3867 -=====================================================================-