diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-05-05 21:17:24 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-05-05 21:17:24 -0700 |
commit | b96af395b9af2ff9df94b3e82213171f30827c8d (patch) | |
tree | 17c8c12648ccc25625e2534ec8d74fbe8f1542cc /999spaces.cc | |
parent | 2e3b597fe85b654e82b891c22d50754fa5a26156 (diff) | |
download | mu-b96af395b9af2ff9df94b3e82213171f30827c8d.tar.gz |
1276 - make C++ version the default
I've tried to update the Readme, but there are at least a couple of issues.
Diffstat (limited to '999spaces.cc')
-rw-r--r-- | 999spaces.cc | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/999spaces.cc b/999spaces.cc new file mode 100644 index 00000000..6f348073 --- /dev/null +++ b/999spaces.cc @@ -0,0 +1,21 @@ +//: Since different layers all carve out different parts of various namespaces +//: (recipes, memory, etc.) for their own use, there's no previous place where +//: we can lay out the big picture of what uses what. So we'll do that here +//: and just have to manually remember to update it when we move boundaries +//: around. +//: +//:: Memory +//: +//: Location 0 - unused (since it can help uncover bugs) +//: Locations 1-899 - reserved for tests +//: Locations 900-999 - reserved for predefined globals in mu scenarios, like keyboard, screen, etc. +:(before "End Setup") +assert(Max_variables_in_scenarios == 900); +//: Locations 1000 ('Reserved_for_tests') onward - available to the allocator in chunks of size Initial_memory_per_routine. +assert(Reserved_for_tests == 1000); + +//:: Recipes +//: +//: 0 - unused (IDLE; do nothing) +//: 1-999 - all fixed code +//: 1000 onwards - reserved for tests, cleared between tests |