Searching \ for 'HiTech C compiler' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/language/index.htm?key=c
Search entire site for: 'HiTech C compiler'.

Truncated match.
PICList Thread
'HiTech C compiler'
1998\05\27@103141 by David BALDWIN

flavicon
face
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)            spam_OUTbaldwinTakeThisOuTspametca.alcatel.be

1998\05\27@111933 by WF AUTOMACAO

flavicon
face
David BALDWIN 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)            .....baldwinKILLspamspam@spam@etca.alcatel.be

Include the #asm directive will be a solution for the size!

Miguel.

1998\05\27@131956 by Andy Kunz

flavicon
face
>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!

It all depends on what you would like to do.  I use the HiTech compiler
_almost_ exclusively any more (I use the MPLAB-C 1.21 for a legacy project,
and it is now converted to use HiTech, and I use the Parallax/Tech-Tools
assembler for legacy maintenance).

Andy

==================================================================
Andy Kunz - Statistical Research, Inc. - Westfield, New Jersey USA
==================================================================

1998\05\27@223259 by Dennis Plunkett

flavicon
face
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)            baldwinspamKILLspametca.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

-=====================================================================-

More... (looser matching)
- Last day of these posts
- In 1998 , 1999 only
- Today
- New search...