From 89c58808de4c86fe9eb0a89babc862702151b890 Mon Sep 17 00:00:00 2001 From: Danny Yoo Date: Sun, 27 Mar 2011 00:53:25 -0400 Subject: [PATCH] notes to self --- NOTES | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 NOTES diff --git a/NOTES b/NOTES new file mode 100644 index 0000000..44a285b --- /dev/null +++ b/NOTES @@ -0,0 +1,15 @@ +Some possible optimizations: + + +Application: + + If any of the operands are constant (either by being variable + lookups or literal constants), and if all of them are side-effect + free, then juggle-operands might not be necessary. + + In a self-application, it's not necessary to compute the operator, + since the value is in the top control frame. + + For a kernel primitive call, if all of the operands are all + constant or stack references, there's no need to push for fresh + stack space.