aboutsummaryrefslogtreecommitdiff
path: root/stm/main.c
diff options
context:
space:
mode:
authorDamien George2014-01-29 19:21:17 +0000
committerDamien George2014-01-29 19:21:17 +0000
commit01fa4a91643702eb62645346991a41e52c1c8414 (patch)
treec19277cd1f61a6553b79d3e7a3163d2cf835fdb6 /stm/main.c
parent0347fbd2d541d6ede7d281e0b2f8c79d56c5f8be (diff)
stm: Fix gccollect ram range.
Diffstat (limited to 'stm/main.c')
-rw-r--r--stm/main.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/stm/main.c b/stm/main.c
index 9f2b6d564..5c2d3cf17 100644
--- a/stm/main.c
+++ b/stm/main.c
@@ -174,15 +174,24 @@ static mp_obj_t pyb_info(void) {
extern void *_ebss;
extern void *_estack;
extern void *_etext;
+ printf("_etext=%p\n", &_etext);
printf("_sidata=%p\n", &_sidata);
printf("_sdata=%p\n", &_sdata);
printf("_edata=%p\n", &_edata);
printf("_sbss=%p\n", &_sbss);
printf("_ebss=%p\n", &_ebss);
printf("_estack=%p\n", &_estack);
- printf("_etext=%p\n", &_etext);
printf("_ram_start=%p\n", &_ram_start);
printf("_heap_start=%p\n", &_heap_start);
+ printf("_heap_end=%p\n", &_heap_end);
+ printf("_ram_end=%p\n", &_ram_end);
+ }
+
+ // qstr info
+ {
+ uint n_pool, n_qstr, n_str_data_bytes, n_total_bytes;
+ qstr_pool_info(&n_pool, &n_qstr, &n_str_data_bytes, &n_total_bytes);
+ printf("qstr:\n n_pool=%u\n n_qstr=%u\n n_str_data_bytes=%u\n n_total_bytes=%u\n", n_pool, n_qstr, n_str_data_bytes, n_total_bytes);
}
// GC info