title: Why using inline function in c++ doesn't grow binary size?
body: <p>I have written this code:</p>
  
  <pre><code>inline int a_plus_b_power2(int a, int b) {
    return (a + b) * (a + b); 
  }
  
  int main() {
    for(int a = 0; a &lt; 9999999999999; ++a)
      for(int b = 0; b &lt; 999999999999; ++b)
        a_plus_b_power2(a, b);  
  
    return 0;
  }
  </code></pre>
  
  <p>but why the binary of this program doesn't differ with this program:</p>
  
  <pre><code>inline int a_plus_b_power2(int a, int b) {
    return (a + b) * (a + b); 
  }
  
  int main() {
    for(int a = 0; a &lt; 9; ++a)
      for(int b = 0; b &lt; 9; ++b)
        a_plus_b_power2(a, b);  
  
    return 0;
  }
  </code></pre>