From 80ac3ef86f59f828063334e859313204d39385d3 Mon Sep 17 00:00:00 2001 From: Justin Ethier Date: Fri, 5 Oct 2018 17:32:28 -0400 Subject: [PATCH] Added notes --- tests/experimental/fac-test.scm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/experimental/fac-test.scm b/tests/experimental/fac-test.scm index bcf74360..2fbb674a 100644 --- a/tests/experimental/fac-test.scm +++ b/tests/experimental/fac-test.scm @@ -12,12 +12,14 @@ (write (fac 10)) #| Next-gen runtime: +// TODO: pass pc, args, argc (?? maybe not, already part of fnc calls) via gc_thread_data. +// that allows all sub-functions to be called via the same function prototype static void __host_lambda_1(void *data, int pc, int argc, object *args) { // TODO: self? cont? object top; - object stack[3]; // length computed by the compiler based on function arguments - // initialize "stack" here, and unload arguments. - // assumes the compile can compute the stack's max size, since it knows the number of args each function has - memcpy(stack, args, sizeof(object) * argc); +// object stack[3]; // length computed by the compiler based on function arguments +// // initialize "stack" here, and unload arguments. +// // assumes the compile can compute the stack's max size, since it knows the number of args each function has +// memcpy(stack, args, sizeof(object) * argc); loop: top = alloca(sizeof(object)); // TODO: is there a more efficient way?