PA-RISC Procedure Calling Conventions Reference Manual
> Appendix A Standard Procedure CallsA.2 ANSI C Source Code |
||||||||||||||
|
#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(); }
|