comparison CbC-examples/conv.c @ 22:0eb6cac880f0

add cbc example of quicksort.
author kent <kent@cr.ie.u-ryukyu.ac.jp>
date Tue, 13 Oct 2009 17:15:58 +0900
parents 959d4c8c8abc
children
comparison
equal deleted inserted replaced
21:959d4c8c8abc 22:0eb6cac880f0
62 void *env; 62 void *env;
63 }; 63 };
64 64
65 __code main_return(int i,stack sp) { 65 __code main_return(int i,stack sp) {
66 printf("#0061:%d\n",i); 66 printf("#0061:%d\n",i);
67 goto (( (struct main_continuation *)sp)->main_ret)(0, 67 goto (( (struct main_continuation *)sp)->main_ret)(i,
68 ((struct main_continuation *)sp)->env); 68 ((struct main_continuation *)sp)->env);
69 } 69 }
70 70
71 #define STACK_SIZE 2048 71 #define STACK_SIZE 2048
72 char main_stack[STACK_SIZE]; 72 char main_stack[STACK_SIZE];