step of work som 4.1

There are two versions of vm, the first one is the vm for v.4.0 used for boostrapping.  The second one is the new vm for som 4.1 with u2-code.  The first image comes from compiling som 4.1 compiler into u-code that can be executed with som 4.0 vm.  The old vm is used to run the "cross" compiler (new compiler in old u-code) to recompile the new compiler into the new u2-code. That is the final product.

1  use the compiler som40.exe + som40.obj.
2  modify the compiler (called it som41s) to generate u2-code.
3  use som40 compiler to compile it to som41.obj.
4  the cross compiler is som40.exe + som41.obj. it is the new compiler in u-code. (that can be executed by the old vm, som40.exe).
5  use som40.exe + som41.obj to compile som41s to produce som42.obj.  The new image in u2-code.
6  modify the vm to run u2-code. it is som41.exe, the new vm.
7  The som41.exe + som42.obj is the new compiler for som 4.1. This is the final product.
8  Test it by use it to compile som41s again the object output should be the same as som42.obj.

3 Aug 2008


