From 6f5d7864f6c0c62b8849349cb182c61f8dbed452 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Wed, 25 Feb 2015 01:24:11 -0800 Subject: 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? --- cpp/019array | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cpp/019array') diff --git a/cpp/019array b/cpp/019array index bb50a783..fe457b0a 100644 --- a/cpp/019array +++ b/cpp/019array @@ -15,7 +15,7 @@ recipe main [ 4:integer <- copy 16:literal 5:integer-array <- copy 1:integer-array ] -+run: instruction 4 ++run: instruction main/4 +run: ingredient 0 is 1 +mem: location 1 is 3 +mem: location 2 is 14 @@ -91,7 +91,7 @@ recipe main [ 4:integer <- copy 16:literal 5:integer <- index 1:integer-array, 0:literal ] -+run: instruction 4 ++run: instruction main/4 +run: ingredient 0 is 1 +run: ingredient 1 is 0 +run: address to copy is 2 @@ -132,7 +132,7 @@ recipe main [ 4:integer <- copy 16:literal 5:integer <- index-address 1:integer-array, 0:literal ] -+run: instruction 4 ++run: instruction main/4 +run: ingredient 0 is 1 +run: ingredient 1 is 0 +run: address to copy is 2 -- cgit 1.4.1-2-gfad0