Add external call function to compiler.cc