version 1.3, 2002/07/30 20:55:11
|
version 1.5, 2003/03/09 15:17:12
|
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) { |