Re: [Dev-C++] Use of const qualifier
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Abhijit S. <mu...@gm...> - 2002-11-02 05:14:23
|
> > Yes. Also if you can make it easy to be inlined things will be more > > better. > > Inlining a function is decided by the compiler. Functions with loops, etc. > are generally not inlined, so this won't be of much help. You can achieve > the same end by simply eliminating the function (moving all of the code into > the main routine). This will remove the overhead of function calls and > memory allocation (which should help a lot in this case). This should be a > case of code-elegance versus execution-speed. Also consider generating > look-up tables of sine and cos. There are a lot of articles on the web about > optimizing programs. I remember one that spoke in explicit detail about how > memory can be optimized... unfortunately, I don't remember saving it. Google > helps. This site: http://www.numerix-dsp.com/c_coding.html says that static variables help. ___________________________________________________________ Abhijit Shylanath E-mail: mu...@gm... || ibr...@bi... Web-site: http://mudeth.tripod.com/ |