title: Generating a comprehensive callgraph using GCC & Egypt
body: <p>I am trying to generate a comprehensive callgraph (complete with low level calls to Linux, runtime, the lot).</p>
  
  <p>I have statically compiled my source files with "-fdump-rtl-expand" and created RTL files, which I passed to a PERL script called Egypt (which I believe is Graphviz/Dot) and generated a PDF file of the callgraph. This works perfectly, no problems at all.</p>
  
  <p>Except, there are calls being made into some libraries that are getting shown as built-in. I was looking to see if there is a way for the callgraph not to be printed as  and instead the real calls made into the libraries ?</p>
  
  <p>Please let me know if the question is unclear.</p>
  
  <p><img src="https://i.imgur.com/sp58v.jpg"></p>
  
  <p><a href="https://i.imgur.com/sp58v.jpg" rel="noreferrer">http://i.imgur.com/sp58v.jpg</a></p>
  
  <p>Basically, I am trying to avoid the callgraph from generating &lt; built-in ></p>
  
  <p>Is there a way to do that ?</p>
  
  <p>-------- CODE ---------</p>
  
  <pre><code>#include &lt;cilk/cilk.h&gt;
  #include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  
  unsigned long int t0, t5;
  unsigned int NOSPAWN_THRESHOLD = 32;
  
  int fib_nospawn(int n)
  {
    if (n &lt; 2) 
      return n;
    else 
      {
        int x = fib_nospawn(n-1);
        int y = fib_nospawn(n-2);
        return x + y;
      }
  }
  
  // spawning fibonacci function
  int fib(long int n)
  {
    long int x, y;
    if (n &lt; 2) 
      return n;
    else if (n &lt;= NOSPAWN_THRESHOLD)
      {
        x = fib_nospawn(n-1);
        y = fib_nospawn(n-2);
        return x + y;
      }
    else 
      {
        x = cilk_spawn fib(n-1);
        y = cilk_spawn fib(n-2);
        cilk_sync;
        return x + y;
      }
  }
  
  int main(int argc, char *argv[])
  {
    int n;
    long int result;
    long int exec_time;
  
    n = atoi(argv[1]);
    NOSPAWN_THRESHOLD = atoi(argv[2]);
    result = fib(n);
  
    printf("%ld\n", result);
    return 0;
  }
  </code></pre>
  
  <p>I compiled the Cilk Library from source.</p>