title: Is there, as in JavaScript, a performance penalty for creating functions in C?
body: <p>In JavaScript, there are, often, huge performance penalties for writing functions. For example, if you use this function:</p>
  
  <pre><code>function double(x){ return x*2; }
  </code></pre>
  
  <p>inside an inner loop, you are probably hitting your performance considerably, so it is really profitable to inline that kind of function for intensive applications. Does this, in general, hold for C? Am I free to create those kind of functions for everything, and rest assured the compiler will do the job, or is hand inlining still important?</p>