diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-05-04 12:11:51 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-05-04 12:11:51 -0700 |
commit | be3fb4e139cff16a472fcde00642bf891e953aaf (patch) | |
tree | fbe840611575976ef53eab8475440b4b0fd576cc | |
parent | 255cc28813b9f53dd678c78551e3adb036002553 (diff) | |
download | mu-be3fb4e139cff16a472fcde00642bf891e953aaf.tar.gz |
1252 - big-picture memory layout
-rw-r--r-- | cpp/999spaces.cc | 15 | ||||
-rw-r--r-- | cpp/vimrc.vim | 2 |
2 files changed, 16 insertions, 1 deletions
diff --git a/cpp/999spaces.cc b/cpp/999spaces.cc new file mode 100644 index 00000000..ace149fc --- /dev/null +++ b/cpp/999spaces.cc @@ -0,0 +1,15 @@ +//: 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. +//: +//:: Memory +//: +//: Location 0 - unused (since it can help uncover bugs) +//: Locations 1-999 - reserved for tests +//: Locations 1000 ('Reserved_for_tests') onward - available to the allocator in chunks of size Initial_memory_per_routine. +//: +//:: Recipes +//: +//: 0 - unused (IDLE; do nothing) +//: 1-999 - all fixed code +//: 1000 onwards - reserved for tests, cleared between tests diff --git a/cpp/vimrc.vim b/cpp/vimrc.vim index fa9adc79..42d17fc0 100644 --- a/cpp/vimrc.vim +++ b/cpp/vimrc.vim @@ -26,7 +26,7 @@ function! HighlightTangledFile() endfunction call HighlightTangledFile() autocmd BufRead,BufNewFile *.mu set ft=mu -autocmd BufRead,BufNewFile 0* call HighlightTangledFile() +autocmd BufRead,BufNewFile [0-9]* call HighlightTangledFile() " Scenarios considered: " opening or starting vim with a new or existing file without an extension (should interpret as C++) |