On 17/01/2023 08:11,
minf...@arcor.de wrote:
> Gerry Jackson schrieb am Montag, 16. Januar 2023 um 21:29:24 UTC+1:
>> My sytem, that has never been released (and won't be), which was
>> developed from about 2005, compiles Forth code to an intermediate form,
>> carries out some optimisations, then generates the executable code. I
>> did it this way (I think) to:
>> - widen the range of optimisations beyond simple peephole optimisation
>> - making it more readily portable to different processors and OS's (one
>> front end, n back ends).
>> - generating different types of executable code including machine code.
>>
>> and probably other reasons that I've forgotten.
>>
>> I did peephole optimisations and super-instructions but then found other
>> things took priority e.g. using the system, so I've never got round to
>> getting on with other aims.
>>
>> It did make things such as quotations easier as it just involves
>> suspending the outer definition, compiling the quotation, then resuming
>> the suspended definition. Nested as much as desired.
>
> So it compiles the innermost definitions/quotations first before compiling
> outer definitions?
>
> The "classic" way is to jump over quotations, nesting included.
Not with the built in quotations. But before quotations were