aboutsummaryrefslogtreecommitdiff
path: root/src/tools/build.zc
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/build.zc')
-rw-r--r--src/tools/build.zc13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/tools/build.zc b/src/tools/build.zc
index 547b70f..b0e3da0 100644
--- a/src/tools/build.zc
+++ b/src/tools/build.zc
@@ -1,13 +1,18 @@
+namespace;
+include rt, run;
+
// compiles the rest of stdin (after the backtick) as a genome image at GORG
// and writes it to stdout as little-endian 64-bit words.
+
+
docs on;
// writes the compiled genome image to stdout as little-endian 64-bit words.
int main() {
- int n = build_image_grow(GORG, 4096), i = 0, w;
+ int n = run.build_image_grow(rt.GORG, 4096), i = 0, w;
while (i < n) {
- w = image_words[i];
- put_c(w); put_c(w >> 8); put_c(w >> 16); put_c(w >> 24);
- put_c(w >> 32); put_c(w >> 40); put_c(w >> 48); put_c(w >> 56);
+ w = run.image_words[i];
+ rt.put_c(w); rt.put_c(w >> 8); rt.put_c(w >> 16); rt.put_c(w >> 24);
+ rt.put_c(w >> 32); rt.put_c(w >> 40); rt.put_c(w >> 48); rt.put_c(w >> 56);
i++;
}
return 0;