Concatenative topics
Concatenative meta
Other languages
Meta
Factor's non-optimizing compiler compiles quotations executed in the listener, as well as words which do not have a static stack effect. It is also used during the bootstrap process so that the Optimizing compiler can compile itself.
The non-optimizing compiler is very simple, essentially translating the elements of each quotation into a a series of machine code blocks which are then concatenated together. This is known as "subroutine call threading", however a little bit of inlining is also performed. The non-optimizing compiler is implemented in vm/quotations.c
, with CPU backends in basis/cpu//bootstrap.factor
.
Blog posts:
Related Wiki articles:
This revision created on Mon, 12 Jan 2009 04:40:56 by slava