atabac / python-on-a-chip

Automatically exported from code.google.com/p/python-on-a-chip
Other
0 stars 0 forks source link

Make heap not hard-coded #162

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Right now the heap's base and size is set at compile time.  It would be better 
if this were adjustable, perhaps set through parameters of pm_init().

Original issue reported on code.google.com by dwhall...@gmail.com on 23 Oct 2010 at 5:46

GoogleCodeExporter commented 9 years ago

Original comment by dwhall...@gmail.com on 29 Oct 2010 at 4:25

GoogleCodeExporter commented 9 years ago

Original comment by dwhall...@gmail.com on 29 Oct 2010 at 4:25

GoogleCodeExporter commented 9 years ago
r9d5f82c489dc
Moved hard-coded heap from heap.c to outside of the VM; usually main().
Changed pm_init() and heap_init() API to accept heap base pointer and size 
arguments.
Updated all platforms and tests to use new pm_init() API.
Heap's .size and .avail fields are now always 32-bit to allow large heaps.
Updated lib/sys.py to use new heap_getSize() API.

Original comment by dwhall...@gmail.com on 30 Oct 2010 at 11:33