From 3c36f513532d28ac101fb057e845ce66b8e6da1b Mon Sep 17 00:00:00 2001 From: Irene Knapp Date: Tue, 29 Sep 2026 11:17:30 -0700 Subject: add a constant string "boot-source" which is run at startup this will allow us to have compiled-in code that wouldn't run under the transforms, though we don't add anything of substance just yet this strategy was used early in bring-up, in the historical flatassembler version of Evocation, so the design space of it is already well-explored in Irenes' head. how pleasant. :) Force-Push: yes Change-Id: I722cddb77657df9ca518c0d9841aa587bf63feb3 --- language/dynamic/interpret.e | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'language') diff --git a/language/dynamic/interpret.e b/language/dynamic/interpret.e index 0af0dab..02f3365 100644 --- a/language/dynamic/interpret.e +++ b/language/dynamic/interpret.e @@ -593,7 +593,10 @@ dup entry-flags@ 0x80 invert & swap entry-flags! main-input-buffer input-buffer-refill ! ; -~ Of course it is perfectly reasonable to change this, but for now it's -~ hardcoded. -relink-main-input-buffer-to-stdin +~ We don't actually call relink-main-input-buffer-to-stdin here. It would +~ work if we did (the log-load transform is capable of making that happen), +~ but some executables will wish to use it during warm-start while others will +~ prefer to first attach input to a string, often called boot-source, and only +~ later relink it. So, we leave those calls to helpers in +~ compilation/execution.e. -- cgit 1.4.1