unix: Allocate more heap memory by default on 64 bit machines.

Pointers are 2x bigger on 64 bit machines, so we should allocate twice
the memory to have a comparable heap size.
This commit is contained in:
Damien George 2014-04-04 14:29:00 +01:00
parent 9b1599c663
commit bd17e1b3ae

View File

@ -30,7 +30,8 @@
#if MICROPY_ENABLE_GC
// Heap size of GC heap (if enabled)
long heap_size = 128*1024;
// Make it larger on a 64 bit machine, because pointers are larger.
long heap_size = 128*1024 * (sizeof(machine_uint_t) / 4);
#endif
// Stack top at the start of program