Monday, December 05, 2005

About INLINE functions

Advantages:

  1. It leads to a more readable program
  2. It leads to much faster code (reducing fucntion calling time). That is improves program performence.
  3. It accomplishes the same efficiency that the macro accomplishes.
Disadvantages:
  1. Its frequent use can lead to increase in code size (that is output file size).
These advantages and disadvantages are part of the choice and/or trade off's that you have to make as a programmer. Speed over filesize or readability over lines of code, those are the types of choices that you as a programmer will have to make.

No comments: