about summary refs log tree commit diff stats
path: root/cpp/018address
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-02-25 01:24:11 -0800
committerKartik K. Agaram <vc@akkartik.com>2015-02-25 01:24:11 -0800
commit6f5d7864f6c0c62b8849349cb182c61f8dbed452 (patch)
treec4c22032dc09eefbc3b55268044d29607804c4fd /cpp/018address
parentdc3803320013059ad400853e3f6a2851f7f82c04 (diff)
downloadmu-6f5d7864f6c0c62b8849349cb182c61f8dbed452.tar.gz
832 - call-stack for C++ version
These #defines and references now span many different layers. Let's see
if the lack of encapsulation causes problems.

Also interesting to run into a case where I need to modify a
foundational layer and touch every single scenario/trace. Only
alternative was to duplicate all the different layers that add
instructions. Sign of problems with this model?
Diffstat (limited to 'cpp/018address')
-rw-r--r--cpp/018address8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/018address b/cpp/018address
index 19650e84..bdf10685 100644
--- a/cpp/018address
+++ b/cpp/018address
@@ -6,7 +6,7 @@ recipe main [
   # This loads location 1 as an address and looks up *that* location.
   3:integer <- copy 1:address:integer/deref
 ]
-+run: instruction 2
++run: instruction main/2
 +mem: location 1 is 2
 +mem: location 2 is 34
 +mem: storing in location 3
@@ -35,7 +35,7 @@ recipe main [
   1:address:integer <- copy 2:literal
   1:address:integer/deref <- copy 34:literal
 ]
-+run: instruction 1
++run: instruction main/1
 +mem: location 1 is 2
 +mem: storing in location 2
 
@@ -103,7 +103,7 @@ recipe main [
   3:integer <- copy 35:literal
   4:integer <- get 1:address:point/deref, 0:offset
 ]
-+run: instruction 3
++run: instruction main/3
 +run: address to copy is 2
 +run: product 0 is 34
 +mem: storing in location 4
@@ -146,7 +146,7 @@ recipe main [
   3:integer <- copy 35:literal
   4:integer <- get-address 1:address:point/deref, 0:offset
 ]
-+run: instruction 3
++run: instruction main/3
 +run: address to copy is 2
 +run: product 0 is 2