ref: eb67b951280ae9ad08e3830fe0780d4d50fc3cf8
parent: eb375045fab9bc66084cc081e915261fb492fe01
author: Rewbert <krookr@chalmers.se>
date: Mon Dec 18 11:19:18 EST 2023
move static sizes out into configuration file
--- /dev/null
+++ b/src/runtime/config.h
@@ -1,0 +1,11 @@
+#ifndef CONFIG_H
+#define CONFIG_h
+
+/*
+ * In here are items that can be configured, but that does not depend on the platform.
+ */
+
+#define HEAP_CELLS 50000000
+#define STACK_SIZE 100000
+
+#endif // CONFIG_H
\ No newline at end of file
--- a/src/runtime/eval.c
+++ b/src/runtime/eval.c
@@ -91,8 +91,15 @@
#define LOW_INT (-10)
#define HIGH_INT 256
+#include "config.h"
+
+#if !defined(HEAP_CELLS)
#define HEAP_CELLS 50000000
+#endif
+
+#if !defined(STACK_SIZE)
#define STACK_SIZE 100000
+#endif
#if !defined(ERR)
#if WANT_STDIO
--
⑨