Mercurial > hg > CbC > old > device
view test/tmp2.c @ 282:d61cf7a9b469
first jmp in MIPS
author | kono |
---|---|
date | Mon, 24 May 2004 07:37:42 +0900 |
parents | 096559f07a70 |
children | 682c8ec38d45 |
line wrap: on
line source
#include "stdio.h" int main(ac,av) int ac; char *av[]; { int i; i=main0(ac,av); fprintf(stdout,"1: %s %d\n",av[0],i); return 0; } int main0(ac,av) int ac; char *av[]; { fprintf(stdout,"2: %s\n",av[0]); goto code0(av,return,environment); } code code0(av,ret,retenv) char *av[]; code (*ret)(); void *retenv; { char *p; p = av[0]; fprintf(stdout,"3: %s\n",p); goto code1(av,ret,retenv); } code code1(av,ret,retenv) char *av[]; code (*ret)(); void *retenv; { fprintf(stdout,"4: %s\n",av[0]); goto (*ret)(1234),retenv; }