about summary refs log tree commit diff
path: root/hello.e
diff options
context:
space:
mode:
Diffstat (limited to 'hello.e')
-rw-r--r--hello.e23
1 files changed, 20 insertions, 3 deletions
diff --git a/hello.e b/hello.e
index a19d076..593dc95 100644
--- a/hello.e
+++ b/hello.e
@@ -1,4 +1,6 @@
-~ cat labels.e elf.e hello.e | ./quine > hello && chmod 755 hello && ./hello
+~ ./evoke hello.e enchant > hello && chmod 755 hello && ./hello
+
+s" evoke.e" include drop
 
 : output-start-routine
   current-offset L!' cold-start
@@ -31,6 +33,21 @@
   current-offset L!' total-size
   ;
 
-x' all-contents label-loop
-1 3unroll sys-write bye
+
+: define-compilation
+  allocate-compilation-definition
+  dup zero-compilation-definition
+  ~ (definition)
+
+  :raw-executable over compilation-definition-executable-type !
+
+  [ current-input-file-name literal-string ]
+  over compilation-definition-top-level-filename !
+
+  x' all-contents over compilation-definition-compile-body !
+
+  s" hello-executable-data" variable ;
+define-compilation
+
+: latest-executable-data hello-executable-data ;