Loading...
 
Skip to main content
What is it and some traps.

meta-compiling

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

Switch Theme

Shoutbox

eddie, 18:52 AEST, Wed 11 of Sep, 2024: Most pages should be working again.
System Administrator, 08:03 AEST, Sat 10 of Aug, 2024: Lots of images are still broken. I'm working on it. Maybe 1/2 way through.
admin2, 14:05 AEST, Mon 05 of Aug, 2024: running tiki 27
admin2, 16:01 AEST, Sun 09 of Jun, 2024: Wiki running tikiwiki version 27alpha on a raspberry pi-3. About 1/2 the images are missing and most thumbnails not working. Slow manual rebuild. About %20 done.
eddie, 20:23 AEST, Sun 19 of May, 2024: Images moved from wiki_up to file galleries and wiki pages fixed.

Last-Visited Pages

Online Users

175 online users