Branch: Tag:

2001-07-20

2001-07-20 12:44:55 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Split out the low-level code-generation code to separate files.

Rev: src/Makefile.in:1.270
Rev: src/code/README.txt:1.1
Rev: src/code/bytecode.c:1.1
Rev: src/code/bytecode.h:1.1
Rev: src/code/computedgoto.c:1.1
Rev: src/code/computedgoto.h:1.1
Rev: src/code/ia32.c:1.1
Rev: src/code/ia32.h:1.1
Rev: src/code/sparc.c:1.1
Rev: src/code/sparc.h:1.1
Rev: src/peep.c:1.62
Rev: src/pikecode.c:1.1
Rev: src/pikecode.h:1.1

1: + /* +  * $Id: pikecode.c,v 1.1 2001/07/20 12:44:49 grubba Exp $ +  * +  * Generic strap for the code-generator. +  * +  * Henrik Grubbström 20010720 +  */    -  + #include "global.h" + #include "program.h" + #include "opcodes.h" + #include "docode.h" + #include "interpret.h" + #include "language.h" + #include "lex.h" +  + #include "pikecode.h" +  + #ifdef PIKE_USE_MACHINE_CODE + #ifdef __i386__ + #include "code/ia32.c" + #elif defined(sparc) || defined(__sparc__) + #include "code/sparc.c" + #else /* Unsupported cpu */ + #error Unknown CPU + #endif /* CPU type */ + #elif defined(HAVE_COMPUTED_GOTO) + #include "code/computedgoto.c" + #else /* Default */ + #include "code/bytecode.c" + #endif /* Interpreter type. */   Newline at end of file added.