added codegen for external function argument pointers