comparison test/tmp4.c @ 748:c2c709727221

i64 continue... basic.s assembled.
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sat, 13 Nov 2010 22:39:40 +0900
parents 3f1f6c0610c1
children
comparison
equal deleted inserted replaced
747:d4bc10fe7362 748:c2c709727221
8 int ac; 8 int ac;
9 char *av[]; 9 char *av[];
10 { 10 {
11 int i; 11 int i;
12 i=main0(ac,av); 12 i=main0(ac,av);
13 fprintf(stdout,"1: %s %d\n",av[0]+2,i); 13 fprintf(stdout,"#0012:1: %s %d\n",av[0]+2,i);
14 return 0; 14 return 0;
15 } 15 }
16 16
17 int 17 int
18 main0(ac,av) 18 main0(ac,av)
21 { 21 {
22 int i,j,k; 22 int i,j,k;
23 i=123; 23 i=123;
24 j=456; 24 j=456;
25 k=789; 25 k=789;
26 fprintf(stdout,"2: %s\n",av[0]+2); 26 fprintf(stdout,"#0025:2: %s\n",av[0]+2);
27 goto code0(i,j,k,av,__return,__environment); 27 goto code0(i,j,k,av,__return,__environment);
28 } 28 }
29 29
30 __code code0(i,j,k,av,ret,retenv) 30 __code code0(i,j,k,av,ret,retenv)
31 int i,j,k; 31 int i,j,k;
33 __code (*ret)(); 33 __code (*ret)();
34 void *retenv; 34 void *retenv;
35 { 35 {
36 char *p; 36 char *p;
37 p = av[0]+2; 37 p = av[0]+2;
38 fprintf(stdout,"3: i=%d j=%d k=%d av[0]=%s p=%s\n",i,j,k,av[0]+2,p); 38 fprintf(stdout,"#0037:3: i=%d j=%d k=%d av[0]=%s p=%s\n",i,j,k,av[0]+2,p);
39 goto code1(i,j,k,av,ret,retenv); 39 goto code1(i,j,k,av,ret,retenv);
40 } 40 }
41 41
42 __code code1(i,j,k,av,ret,retenv) 42 __code code1(i,j,k,av,ret,retenv)
43 int i,j,k; 43 int i,j,k;
44 char *av[]; 44 char *av[];
45 __code (*ret)(); 45 __code (*ret)();
46 void *retenv; 46 void *retenv;
47 { 47 {
48 fprintf(stdout,"4: %s\n",av[0]+2); 48 fprintf(stdout,"#0047:4: %s\n",av[0]+2);
49 goto code2(i,j,k,av,ret,retenv); 49 goto code2(i,j,k,av,ret,retenv);
50 } 50 }
51 51
52 __code code2(i,j,k,av,ret,retenv) 52 __code code2(i,j,k,av,ret,retenv)
53 int i,j,k; 53 int i,j,k;
54 char *av[]; 54 char *av[];
55 __code (*ret)(); 55 __code (*ret)();
56 void *retenv; 56 void *retenv;
57 { 57 {
58 fprintf(stdout,"5: %s\n",av[0]+2); 58 fprintf(stdout,"#0057:5: %s\n",av[0]+2);
59 fprintf(stdout,"5: i=%d j=%d k=%d\n",i,j,k); 59 fprintf(stdout,"#0058:5: i=%d j=%d k=%d\n",i,j,k);
60 goto (*ret)(1234,retenv); 60 goto (*ret)(1234,retenv);
61 } 61 }