E
EC-AKD
Hi All,
I am new to the concept of optimising codes in C. I was wondering if
C level inlining of code is any way comparable to macros. I believe
that inlining is equivalent to writing macros. However I had this
strange feeling if I should go for macros wherever necessary instead
of inlining the codes.
In my project, I have to use basic operations like add and sub many
times. So I initially inlined them and found a lot of optimisation.
However I was wondering if more optimisation could be achieved if I
use macros instead of inlining in some of the functions if not all.
Could any one help me with various optimisation techniques in C. Any
pointers would be appreciated.
Thanks and Regards,
-akd
----------------------------------
Anoop Deoras
Signal Processing Group
Sasken Communication Technologies,
India
----------------------------------
I am new to the concept of optimising codes in C. I was wondering if
C level inlining of code is any way comparable to macros. I believe
that inlining is equivalent to writing macros. However I had this
strange feeling if I should go for macros wherever necessary instead
of inlining the codes.
In my project, I have to use basic operations like add and sub many
times. So I initially inlined them and found a lot of optimisation.
However I was wondering if more optimisation could be achieved if I
use macros instead of inlining in some of the functions if not all.
Could any one help me with various optimisation techniques in C. Any
pointers would be appreciated.
Thanks and Regards,
-akd
----------------------------------
Anoop Deoras
Signal Processing Group
Sasken Communication Technologies,
India
----------------------------------