HP.com home PA-RISC Procedure Calling Conventions Reference Manual > Appendix A Standard Procedure Calls

A.2 ANSI C Source Code

MPE documents

Complete PDF
Table of Contents


  #include <stdio.h>

  int mul (int a, int b)
  {
     return a * b;
  }

  void proca (int a, int b, int *c, int *d, int e, int f)
  {
     *c = a + b;
     *d = mul(a, b);
  }

  void one (void)
  {
     int a, b, c, d, e, f;
     a = 5;
     b = 10;
     proca (a, b, &c, &d, e, f);
     e = c + d;
     f = e;
  }

  main (void)
  {
     one();
  }




A.1 Pascal Source Code


A.3 FORTRAN Source Code