version 1.97, 2007/03/04 22:39:37
|
version 1.99, 2007/03/18 21:46:17
|
Line 225 extern int gforth_memcmp(const char * s1
|
Line 225 extern int gforth_memcmp(const char * s1
|
#endif |
#endif |
#define SUPER_CONTINUE |
#define SUPER_CONTINUE |
|
|
|
#ifdef ASMCOMMENT |
|
/* an individualized asm statement so that (hopefully) gcc's optimizer |
|
does not do cross-jumping */ |
|
#define asmcomment(string) asm(ASMCOMMENT string) |
|
#else |
|
/* we don't know how to do an asm comment, so we just do an empty asm */ |
|
#define asmcomment(string) asm("") |
|
#endif |
|
|
#ifdef GFORTH_DEBUGGING |
#ifdef GFORTH_DEBUGGING |
#if DEBUG |
#if DEBUG |
#define NAME(string) { saved_ip=ip; asm("# "string); fprintf(stderr,"%08lx depth=%3ld: "string"\n",(Cell)ip,sp0+3-sp);} |
#define NAME(string) { saved_ip=ip; asmcomment(string); fprintf(stderr,"%08lx depth=%3ld: "string"\n",(Cell)ip,sp0+3-sp);} |
#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 239 extern int gforth_memcmp(const char * s1
|
Line 248 extern int gforth_memcmp(const char * s1
|
#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+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); } |
#else |
#else |
# define NAME(string) asm("# "string); |
# define NAME(string) asmcomment(string); |
#endif |
#endif |
|
|
#ifdef DEBUG |
#ifdef DEBUG |
Line 359 Label *gforth_engine(Xt *ip0, Cell *sp0,
|
Line 368 Label *gforth_engine(Xt *ip0, Cell *sp0,
|
#include PRIM_LAB_I |
#include PRIM_LAB_I |
#undef INST_ADDR |
#undef INST_ADDR |
}; |
}; |
#ifdef INCLUDE_IMAGE |
#ifdef STANDALONE |
#define INST_ADDR(name) ((Label)&&I_##name) |
#define INST_ADDR(name) ((Label)&&I_##name) |
#include "image.i" |
#include "image.i" |
#undef INST_ADDR |
#undef INST_ADDR |
Line 395 Label *gforth_engine(Xt *ip0, Cell *sp0,
|
Line 404 Label *gforth_engine(Xt *ip0, Cell *sp0,
|
xts[i] = symbols[i] = &routines[i]; |
xts[i] = symbols[i] = &routines[i]; |
} |
} |
#endif /* defined(DOUBLY_INDIRECT) */ |
#endif /* defined(DOUBLY_INDIRECT) */ |
|
#ifdef STANDALONE |
|
return image; |
|
#else |
return symbols; |
return symbols; |
|
#endif |
} |
} |
|
|
#if !(defined(GFORTH_DEBUGGING) || defined(INDIRECT_THREADED) || defined(DOUBLY_INDIRECT) || defined(VM_PROFILING)) |
#if !(defined(GFORTH_DEBUGGING) || defined(INDIRECT_THREADED) || defined(DOUBLY_INDIRECT) || defined(VM_PROFILING)) |