Anonymous committed e6ff418

#99: mainlining directly (post mainline; updating documentation)

  • Participants
  • Parent commits 69b37db

Comments (0)

Files changed (2)

File docs/src/HeapDesign.txt

 The maximum size for a chunk is limited by the number of the bits in the field
 in the object descriptor of the chunk that stores the chunk's size.  This field
-is 8-bits for all target devices.  So the theoretical maximum chunk size is
-255 bytes.  However, an implementation detail has affected the maximum.  On the
-32-bit targets, ARM7 and Desktop x86, memory chunks are required to have 4-byte
-boundaries.  So, the maximum size of a chunk is set to four bytes less than 256,
-or 252 bytes.  
+is 8-bits for all target devices.  So the maximum number of non-zero, unique 
+values is 255.  As of ticket #99 (Revision [195] mainlined 2007/03/16), this
+field is multiplied by 4 to get the actual chunk size.  This allows the VM to
+use larger chunks and also keeps the chunks aligned on 4-byte boundaries,
+which is important on some 32-bit platforms.  The maximum size of a chunk is 
+1020 bytes.
 The maximum size of a chunk has impacted other parts of the VM.  For example,
 the length of String and Tuple objects are directly constrained by the maximum 

File docs/src/PyMiteFeatures.txt

 PyMite supports String, Tuple and List sequence types
-    - String (type str; max length 249 chars)
+    - String (type str; max length 999 chars)
       '', '1', "12", 'hello\n'
-    - Tuple (type tuple; max length 32767)
+    - Tuple (type tuple; max length 253)
       () (1,) (1,2) # parentheses are optional if len > 0
     - List (type list; max length 32767)
       [] [1] [1,2]
 =========== ================================================================
 abs(x)      The absolute value of the number `x`
 chr(i)      Returns one-character string whose ASCII code is integer i.
+eval(co)    Evaluates a given code object (created by Co()).
 globals()   Returns a dictionary containing the current global variables.
 id()        Returns a unique integer identifier for object.
 len(obj)    Returns the length (the number of items) of a sequence or