2002.10.03 ~03 Compiling Scheme to Q3VM bytecode Right now, compiling Scheme directly to a Q3VM file is possible. The opcodes for Q3VM are all laid out, the peculiarities of Q3VM are in the q3lcc patch, the memory structure is not complex. A suitable halfway hack is to compile for a SECD machine, then translate the SECD operations into Q3VM opcodes. The SECD layer could be done away with entirely, but that's an entire research project in of itself ("Optimized Scheme Compiler for Quake 3 Virtual Machine"). Programs for compiling Scheme into SECD byteocde are already available, and written in... Scheme. Well, C compilers are written in C, so that's not so entirely weird :) I'm wondering if it may be more worthwhile to try to hack one of the existing Common Lisp compilers to target Q3VM, instead of trying to compile Scheme via SECD.