From 4b0db8a764746d9d1cdd3dda92d5ef5728fe3750 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Thu, 25 Aug 2016 11:02:50 -0700 Subject: 3250 --- 082scenario_screen.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to '082scenario_screen.cc') diff --git a/082scenario_screen.cc b/082scenario_screen.cc index 5443a369..d17a9a8d 100644 --- a/082scenario_screen.cc +++ b/082scenario_screen.cc @@ -126,10 +126,13 @@ def main [ $error: 0 :(scenarios run_mu_scenario) +//: It's easier to implement assume-screen and other similar scenario-only +//: primitives if they always write to a fixed location. So we'll assign a +//: single fixed location for the per-scenario screen, keyboard, file system, +//: etc. Carve space for these fixed locations out of the reserved-for-test +//: locations. + :(before "End Globals") -// Scenarios may not define default-space, so they should fit within the -// initial area of memory reserved for tests. We'll put the predefined -// variables available to them at the end of that region. const int Max_variables_in_scenarios = Reserved_for_tests-100; int Next_predefined_global_for_scenarios = Max_variables_in_scenarios; :(before "End Setup") -- cgit 1.4.1-2-gfad0