version 1.113, 2010/12/31 18:09:02
|
version 1.114, 2011/11/13 00:45:21
|
Line 230 extern int gforth_memcmp(const char * s1
|
Line 230 extern int gforth_memcmp(const char * s1
|
#define asmcomment(string) asm("") |
#define asmcomment(string) asm("") |
#endif |
#endif |
|
|
|
#define DEPTHOFF 4 |
#ifdef GFORTH_DEBUGGING |
#ifdef GFORTH_DEBUGGING |
#if DEBUG |
#if DEBUG |
#define NAME(string) { saved_ip=ip; asmcomment(string); fprintf(stderr,"%08lx depth=%3ld tos=%016lx: "string"\n",(Cell)ip,sp0+3-sp,sp[0]);} |
#define NAME(string) { saved_ip=ip; asmcomment(string); fprintf(stderr,"%08lx depth=%3ld tos=%016lx: "string"\n",(Cell)ip,sp0+DEPTHOFF-sp,sp[0]);} |
#else /* !DEBUG */ |
#else /* !DEBUG */ |
#define NAME(string) { saved_ip=ip; asm(""); } |
#define NAME(string) { saved_ip=ip; asm(""); } |
/* the asm here is to avoid reordering of following stuff above the |
/* the asm here is to avoid reordering of following stuff above the |
Line 242 extern int gforth_memcmp(const char * s1
|
Line 243 extern int gforth_memcmp(const char * s1
|
because the stack loads may already cause a stack underflow. */ |
because the stack loads may already cause a stack underflow. */ |
#endif /* !DEBUG */ |
#endif /* !DEBUG */ |
#elif DEBUG |
#elif DEBUG |
# define NAME(string) {Cell __depth=sp0+3-sp; int i; fprintf(stderr,"%08lx depth=%3ld: "string,(Cell)ip,sp0+3-sp); for (i=__depth-1; i>0; i--) fprintf(stderr, " $%lx",sp[i]); fprintf(stderr, " $%lx\n",spTOS); } |
# define NAME(string) {Cell __depth=sp0+DEPTHOFF-sp; int i; fprintf(stderr,"%08lx depth=%3ld: "string,(Cell)ip,sp0+DEPTHOFF-sp); for (i=__depth-1; i>0; i--) fprintf(stderr, " $%lx",sp[i]); fprintf(stderr, " $%lx\n",spTOS); } |
#else |
#else |
# define NAME(string) asmcomment(string); |
# define NAME(string) asmcomment(string); |
#endif |
#endif |