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.
pull/427/head
Damien George 2014-04-04 14:29:00 +01:00
rodzic 9b1599c663
commit bd17e1b3ae
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -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