16
|
1 //#include<stdio.h>
|
|
2 //#include<stdlib.h>
|
|
3
|
126
|
4 extern int printf(const char*, ...);
|
|
5
|
16
|
6 #define DPRINT 1
|
|
7 #define NOINLINE __attribute__((noinline))
|
|
8
|
|
9 extern __code cs_goto(int a, int b, int c, int d, int e, int f, int g, int h, int i, int j,
|
|
10 int a2, int b2, int c2, int d2, int e2, int f2, int g2, int h2, int i2, int j2);
|
|
11 extern __code cs0(int a, int b, int c, int d, int e, int f, int g, int h, int i, int j,
|
|
12 int a2, int b2, int c2, int d2, int e2, int f2, int g2, int h2, int i2, int j2);
|
|
13
|
|
14 __code (*csp)(int a, int b, int c, int d, int e, int f, int g, int h, int i, int j,
|
|
15 int a2, int b2, int c2, int d2, int e2, int f2, int g2, int h2, int i2, int j2);
|
|
16
|
|
17 __code NOINLINE cs_exit(int a){
|
|
18 int b = 20 * a + 3;
|
|
19 printf("cs_exit : a=%d. b=%d\n", a, b);
|
|
20 exit(a);
|
|
21 }
|
|
22
|
21
|
23 __code NOINLINE cs0(int a, int b, int c, int d, int e, int f, int g, int h, int i, int j,
|
|
24 int a2, int b2, int c2, int d2, int e2, int f2, int g2, int h2, int i2, int j2){
|
|
25 #if DPRINT
|
|
26 //printf("cs0 : a=%d, b=%d, c=%d, d=%d, e=%d, f=%d, g=%d.\n", a, b, c, d, e, f, g);
|
|
27 printf("cs0 : a=%d, b=%d, c=%d, d=%d, e=%d, f=%d, g=%d, h=%d, i=%d, j=%d\n",
|
|
28 a, b, c, d, e, f, g, h, i, j);
|
|
29 printf("cs0 : a=%d, b=%d, c=%d, d=%d, e=%d, f=%d, g=%d, h=%d, i=%d, j=%d\n",
|
|
30 a2, b2, c2, d2, e2, f2, g2, h2, i2, j2);
|
|
31 #endif
|
|
32 goto cs_exit( (int)(10*a + 10*b + 10*i2 + 10*j2) );
|
|
33 }
|
|
34
|
|
35 __code NOINLINE cs_goto(int a, int b, int c, int d, int e, int f, int g, int h, int i, int j,
|
|
36 int a2, int b2, int c2, int d2, int e2, int f2, int g2, int h2, int i2, int j2){
|
|
37 #if DPRINT
|
|
38 printf("cs_goto : a=%d, b=%d, c=%d, d=%d, e=%d, f=%d, g=%d, h=%d, i=%d, j=%d\n",
|
|
39 a, b, c, d, e, f, g, h, i, j);
|
|
40 printf("cs_goto : a=%d, b=%d, c=%d, d=%d, e=%d, f=%d, g=%d, h=%d, i=%d, j=%d\n",
|
|
41 a2, b2, c2, d2, e2, f2, g2, h2, i2, j2);
|
|
42 #endif
|
|
43 goto cs0(b, c, d, e, f, g, h, i, j, a2, b2, c2, d2, e2, f2, g2, h2, i2, j2, a);
|
|
44 }
|
|
45
|
16
|
46 int function(double l, float m, int n){
|
|
47 int a=10, b=20, c=30, d=40, e=50, f=60, g=70, h=80, i=90, j=100;
|
|
48 int a2=110, b2=120, c2=130, d2=140, e2=150, f2=160, g2=170, h2=180, i2=190, j2=200;
|
|
49
|
|
50 #if DPRINT
|
|
51 printf("function: a=%d, b=%d, c=%d, d=%d, e=%d, f=%d, g=%d, h=%d, i=%d, j=%d\n",
|
|
52 a, b, c, d, e, f, g, h, i, j);
|
|
53 printf("function: a=%d, b=%d, c=%d, d=%d, e=%d, f=%d, g=%d, h=%d, i=%d, j=%d\n",
|
|
54 a2, b2, c2, d2, e2, f2, g2, h2, i2, j2);
|
|
55 //printf("l=%lf, m=%f, n=%d\n", l, m, n);
|
|
56 #endif
|
|
57 //goto cs_goto(10, 20, 30, 40);
|
|
58 goto cs_goto(a, b, c, d, e, f, g, h, i, j, a2, b2, c2, d2, e2, f2, g2, h2, i2, j2);
|
|
59 }
|
|
60
|
|
61
|
|
62 int main(int argc, char **argv){
|
|
63
|
|
64 //printf("main :\n");
|
|
65 /*
|
|
66 printf("main : a=%d, b=%d, c=%d, d=%d, e=%d, f=%d, g=%d, h=%d, i=%d, j=%d\n",
|
|
67 a, b, c, d, e, f, g, h, i, j);
|
|
68 printf("main : a=%d, b=%d, c=%d, d=%d, e=%d, f=%d, g=%d, h=%d, i=%d, j=%d\n",
|
|
69 a2, b2, c2, d2, e2, f2, g2, h2, i2, j2);
|
|
70 */
|
|
71 //csp = cs0;
|
|
72 function(10.01, 20.02, 30);
|
|
73 return 0;
|
|
74 }
|
|
75
|
|
76
|