From 5a0d68541243d700b4ce1fcd4c9c6cd53b8b34e1 Mon Sep 17 00:00:00 2001 From: Justin Ethier Date: Thu, 4 Oct 2018 11:12:13 -0400 Subject: [PATCH] WIP --- tests/experimental/fac-test.scm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/experimental/fac-test.scm b/tests/experimental/fac-test.scm index 8d3c37b2..440f01be 100644 --- a/tests/experimental/fac-test.scm +++ b/tests/experimental/fac-test.scm @@ -14,6 +14,12 @@ static void __host_lambda_1(void *data, int pc, int argc, object *args) { // TODO: self? cont? object top; + object stack[??]; + // TODO: stack length? + + // TODO: initialize "stack" here, and unload arguments. + // TODO: assume the compile can compute the stack's max size, since it knows the number of args each function has + loop: top = alloca( // TODO: if exceeded stack limit, initiate minor GC