esp8266: Change bignum from mpz to longlong; move some rodata to iram.
Some rodata items can go in iram/irom segment, but not others. With
this patch ESP now has 24256 bytes of heap ram. It passes 228 out of
248 tests from tests/basics directory.
diff --git a/esp8266/main.c b/esp8266/main.c
index bab79d6..2f05ed0 100644
--- a/esp8266/main.c
+++ b/esp8266/main.c
@@ -44,6 +44,7 @@
#include MICROPY_HAL_H
void user_init(void) {
+soft_reset:
//mp_stack_set_limit((char*)&_ram_end - (char*)&_heap_end - 1024);
mp_hal_init();
gc_init(&_heap_start, &_heap_end);
@@ -65,6 +66,8 @@
}
}
}
+
+ goto soft_reset;
}
mp_lexer_t *mp_lexer_new_from_file(const char *filename) {