Mercurial > hg > CbC > CbC_gcc
comparison CbC-examples/test_para4.c @ 21:959d4c8c8abc
add conv.c conv1.c
author | kent <kent@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 29 Sep 2009 20:15:16 +0900 |
parents | 4c6926a2b9bc |
children | 5d30d517ebed |
comparison
equal
deleted
inserted
replaced
20:9de9dad105d4 | 21:959d4c8c8abc |
---|---|
16 int b = 20 * a + 3; | 16 int b = 20 * a + 3; |
17 printf("cs_exit : a=%d. b=%d\n", a, b); | 17 printf("cs_exit : a=%d. b=%d\n", a, b); |
18 exit(a); | 18 exit(a); |
19 } | 19 } |
20 | 20 |
21 __code NOINLINE cs0(int a, int b, int c, int d, int e, int f, int g, int h, int i, int j, | |
22 int a2, int b2, int c2, int d2, int e2, int f2, int g2, int h2, int i2, int j2){ | |
23 #if DPRINT | |
24 //printf("cs0 : a=%d, b=%d, c=%d, d=%d, e=%d, f=%d, g=%d.\n", a, b, c, d, e, f, g); | |
25 printf("cs0 : a=%d, b=%d, c=%d, d=%d, e=%d, f=%d, g=%d, h=%d, i=%d, j=%d\n", | |
26 a, b, c, d, e, f, g, h, i, j); | |
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 a2, b2, c2, d2, e2, f2, g2, h2, i2, j2); | |
29 #endif | |
30 goto cs_exit( (int)(10*a + 10*b + 10*i2 + 10*j2) ); | |
31 } | |
32 | |
33 __code NOINLINE cs_goto(int a, int b, int c, int d, int e, int f, int g, int h, int i, int j, | |
34 int a2, int b2, int c2, int d2, int e2, int f2, int g2, int h2, int i2, int j2){ | |
35 #if DPRINT | |
36 printf("cs_goto : a=%d, b=%d, c=%d, d=%d, e=%d, f=%d, g=%d, h=%d, i=%d, j=%d\n", | |
37 a, b, c, d, e, f, g, h, i, j); | |
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 a2, b2, c2, d2, e2, f2, g2, h2, i2, j2); | |
40 #endif | |
41 goto cs0(b, c, d, e, f, g, h, i, j, a2, b2, c2, d2, e2, f2, g2, h2, i2, j2, a); | |
42 } | |
43 | |
21 int function(double l, float m, int n){ | 44 int function(double l, float m, int n){ |
22 int a=10, b=20, c=30, d=40, e=50, f=60, g=70, h=80, i=90, j=100; | 45 int a=10, b=20, c=30, d=40, e=50, f=60, g=70, h=80, i=90, j=100; |
23 int a2=110, b2=120, c2=130, d2=140, e2=150, f2=160, g2=170, h2=180, i2=190, j2=200; | 46 int a2=110, b2=120, c2=130, d2=140, e2=150, f2=160, g2=170, h2=180, i2=190, j2=200; |
24 | 47 |
25 #if DPRINT | 48 #if DPRINT |
29 a2, b2, c2, d2, e2, f2, g2, h2, i2, j2); | 52 a2, b2, c2, d2, e2, f2, g2, h2, i2, j2); |
30 //printf("l=%lf, m=%f, n=%d\n", l, m, n); | 53 //printf("l=%lf, m=%f, n=%d\n", l, m, n); |
31 #endif | 54 #endif |
32 //goto cs_goto(10, 20, 30, 40); | 55 //goto cs_goto(10, 20, 30, 40); |
33 goto cs_goto(a, b, c, d, e, f, g, h, i, j, a2, b2, c2, d2, e2, f2, g2, h2, i2, j2); | 56 goto cs_goto(a, b, c, d, e, f, g, h, i, j, a2, b2, c2, d2, e2, f2, g2, h2, i2, j2); |
34 } | |
35 | |
36 __code NOINLINE cs_goto(int a, int b, int c, int d, int e, int f, int g, int h, int i, int j, | |
37 int a2, int b2, int c2, int d2, int e2, int f2, int g2, int h2, int i2, int j2){ | |
38 #if DPRINT | |
39 printf("cs_goto : a=%d, b=%d, c=%d, d=%d, e=%d, f=%d, g=%d, h=%d, i=%d, j=%d\n", | |
40 a, b, c, d, e, f, g, h, i, j); | |
41 printf("cs_goto : a=%d, b=%d, c=%d, d=%d, e=%d, f=%d, g=%d, h=%d, i=%d, j=%d\n", | |
42 a2, b2, c2, d2, e2, f2, g2, h2, i2, j2); | |
43 #endif | |
44 goto cs0(b, c, d, e, f, g, h, i, j, a2, b2, c2, d2, e2, f2, g2, h2, i2, j2, a); | |
45 } | |
46 | |
47 __code NOINLINE cs0(int a, int b, int c, int d, int e, int f, int g, int h, int i, int j, | |
48 int a2, int b2, int c2, int d2, int e2, int f2, int g2, int h2, int i2, int j2){ | |
49 #if DPRINT | |
50 //printf("cs0 : a=%d, b=%d, c=%d, d=%d, e=%d, f=%d, g=%d.\n", a, b, c, d, e, f, g); | |
51 printf("cs0 : 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("cs0 : 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 #endif | |
56 goto cs_exit( (int)(10*a + 10*b + 10*i2 + 10*j2) ); | |
57 } | 57 } |
58 | 58 |
59 | 59 |
60 int main(int argc, char **argv){ | 60 int main(int argc, char **argv){ |
61 | 61 |