What is it and some traps.


Meta-compiling means the compiler compiles itself.

I liken it to doing brain surgery on yourself.
Things get interesting when you poke the bit of your brain which controls the finger you poke it with.
I guess you have to use both hands.

It is more than surgery it is a complete rebuild.

During meta-compilation there are three or even more versions of the core words.
There is the original, there is a new version compiled into a different memory space and then later the new words is move into the memory space used by the original compiler.

To do this there are also three versions of the interpreter/compiler. The original forth has to pass control to the new version because the memory it is will be overwritten. This second version must in turn pass control to a relocated version of itself in the final memory space and the memory used by the temporary compiler is reused as the rest of the system in compiled.

It is very difficult and I don't recommend you make changes to the source unless they are trivial.

It is very easy to have calls to the wrong version of a word or have a invalid pointer.

Created by eddie. Last Modification: Thursday 26 of July, 2007 20:55:23 AEST by eddie.

Main Index

Switch Theme


eddie, 13:04 AEST, Thu 10 of Aug, 2023: Offline tiki 26 upgrade went badly. Waiting for 26.1. Will limp on.
System Administrator, 18:45 AEST, Wed 26 of Jul, 2023: Recovered from lockout but unable to upgrade to V24
eddie, 23:20 AEST, Sun 29 of Aug, 2021: moving to new server
System Administrator, 17:23 AEST, Thu 12 of Aug, 2021: Image thumbnails not working for gallery images. Problems with the GD extension.
System Administrator, 19:44 AEST, Mon 09 of Aug, 2021: uploaded wiki and database to main server. It didn't work but the old wiki and repaired database seem to mostly work.

Last-Visited Pages

Online Users

21 online users