about summary refs log tree commit diff stats
path: root/html
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-05-06 09:06:19 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-05-06 09:06:19 -0700
commit2187d42ab79a087af1ea4227b90e4600a291b341 (patch)
tree3ddce02ec266961a9d67644b19b5453a84707677 /html
parent8fa6bf9360950ec4feef73502af8b65ba924f24a (diff)
downloadmu-2187d42ab79a087af1ea4227b90e4600a291b341.tar.gz
1289
Diffstat (limited to 'html')
-rw-r--r--html/999spaces.cc.html56
1 files changed, 56 insertions, 0 deletions
diff --git a/html/999spaces.cc.html b/html/999spaces.cc.html
new file mode 100644
index 00000000..0bda8ae1
--- /dev/null
+++ b/html/999spaces.cc.html
@@ -0,0 +1,56 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+<head>
+<meta http-equiv="content-type" content="text/html; charset=UTF-8">
+<title>~/Desktop/s/mu/999spaces.cc.html</title>
+<meta name="Generator" content="Vim/7.4">
+<meta name="plugin-version" content="vim7.4_v1">
+<meta name="syntax" content="cpp">
+<meta name="settings" content="use_css,pre_wrap,no_foldcolumn,expand_tabs,prevent_copy=">
+<meta name="colorscheme" content="minimal">
+<style type="text/css">
+<!--
+pre { white-space: pre-wrap; font-family: monospace; color: #d0d0d0; background-color: #000000; }
+body { font-family: monospace; color: #d0d0d0; background-color: #000000; }
+* { font-size: 1em; }
+.Constant { color: #008080; }
+.Comment { color: #8080ff; }
+.Delimiter { color: #c000c0; }
+.SalientComment { color: #00ffff; }
+-->
+</style>
+
+<script type='text/javascript'>
+<!--
+
+-->
+</script>
+</head>
+<body>
+<pre id='vimCodeElement'>
+<span class="Comment">//: Since different layers all carve out different parts of various namespaces</span>
+<span class="Comment">//: (recipes, memory, etc.) for their own use, there's no previous place where</span>
+<span class="Comment">//: we can lay out the big picture of what uses what. So we'll do that here</span>
+<span class="Comment">//: and just have to manually remember to update it when we move boundaries</span>
+<span class="Comment">//: around.</span>
+<span class="Comment">//:</span>
+<span class="SalientComment">//:: Memory</span>
+<span class="Comment">//:</span>
+<span class="Comment">//: Location 0 - unused (since it can help uncover bugs)</span>
+<span class="Comment">//: Locations 1-899 - reserved for tests</span>
+<span class="Comment">//: Locations 900-999 - reserved for predefined globals in mu scenarios, like keyboard, screen, etc.</span>
+<span class="Delimiter">:(before &quot;End Setup&quot;)</span>
+assert<span class="Delimiter">(</span>Max_variables_in_scenarios == <span class="Constant">900</span><span class="Delimiter">);</span>
+<span class="Comment">//: Locations 1000 ('Reserved_for_tests') onward - available to the allocator in chunks of size Initial_memory_per_routine.</span>
+assert<span class="Delimiter">(</span>Reserved_for_tests == <span class="Constant">1000</span><span class="Delimiter">);</span>
+
+<span class="SalientComment">//:: Recipes</span>
+<span class="Comment">//:</span>
+<span class="Comment">//: 0 - unused (IDLE; do nothing)</span>
+<span class="Comment">//: 1-99 - primitives</span>
+<span class="Comment">//: 100-999 - defined in .mu files as sequences of primitives</span>
+<span class="Comment">//: 1000 onwards - reserved for tests, cleared between tests</span>
+</pre>
+</body>
+</html>
+<!-- vim: set foldmethod=manual : -->