Diff for /gforth/vmgen-ex/support.c between versions 1.3 and 1.6

version 1.3, 2002/06/02 17:02:56 version 1.6, 2003/03/09 15:17:09
Line 1 Line 1
 /* support functions and main() for vmgen example  /* support functions and main() for vmgen example
   
   Copyright (C) 2001 Free Software Foundation, Inc.    Copyright (C) 2001,2003 Free Software Foundation, Inc.
   
   This file is part of Gforth.    This file is part of Gforth.
   
Line 156  int main(int argc, char **argv) Line 156  int main(int argc, char **argv)
   int disassembling = 0;    int disassembling = 0;
   int profiling = 0;    int profiling = 0;
   int c;    int c;
   Inst vm_code[CODE_SIZE];    Inst *vm_code=(Inst *)calloc(CODE_SIZE,sizeof(Inst));
   Inst *start;    Inst *start;
   Cell stack[STACK_SIZE];    Cell *stack=(Cell *)calloc(STACK_SIZE,sizeof(Cell));
   engine_t runvm=engine;    engine_t runvm=engine;
   
   while ((c = getopt(argc, argv, "hdpt")) != -1) {    while ((c = getopt(argc, argv, "hdpt")) != -1) {
Line 174  int main(int argc, char **argv) Line 174  int main(int argc, char **argv)
       break;        break;
     case 'p':      case 'p':
       profiling=1;        profiling=1;
         use_super=0; /* we don't want superinstructions in the profile */
       runvm = engine_debug;        runvm = engine_debug;
       break;        break;
     case 't':      case 't':

Removed from v.1.3  
changed lines
  Added in v.1.6


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>