From e43c9a7b3345e2fc99da813114fd495e6510254c Mon Sep 17 00:00:00 2001 From: Simon Brooke Date: Thu, 14 Sep 2017 15:51:11 +0100 Subject: [PATCH] Documentation in conspage.h --- .gitignore | 2 ++ src/conspage.h | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/.gitignore b/.gitignore index 8ddda0d..a3d5bf6 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,5 @@ target/ nbproject/ *~ + +src/\.#* diff --git a/src/conspage.h b/src/conspage.h index 3e8026e..7b8b930 100644 --- a/src/conspage.h +++ b/src/conspage.h @@ -17,6 +17,13 @@ * later we will want a mechanism for this to be able to grow * dynamically to the maximum we can currently allow, which is * 4294967296. + * + * Note that this means the total number of addressable cons cells is + * 1.8e19, each of 20 bytes; or 3e20 bytes in total; and there are + * up to a maximum of 4e9 of heap space objects, each of potentially + * 4e9 bytes. So we're talking about a potential total of 8e100 bytes + * of addressable memory, which is only slightly more than the + * number of atoms in the universe. */ #define NCONSPAGES 8