Map file analysing...

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Map file analysing...

1,146 次查看
Iko
Contributor II

Hi all. i'm working on HCS08DZ60.

 

I want to analyse the map file to know ram usage (without stack)...

 

Could you confirm me that, to know RAM usage without stack, i just need to add:

- Data segment

- Bss segmant

- Common segment

 

In this case, in my map file (joined) could you confim me that i'm using 1463 bytes of RAM?

 

Tanks in advance.

标签 (1)
0 项奖励
回复
2 回复数

892 次查看
bigmac
Specialist III

Hello Iko,

 

It may also be useful to view the section "Object list sorted by address", where it can be seen the the non-stack RAM usage commences at address 0x200, through to address 0x7B6, a span of 0x5B7 (1463) bytes.

 

Regards,

Mac

 

0 项奖励
回复

892 次查看
kef
Specialist I

Close. You forgot to add stack size. Also, if you used zero page RAM, you should could it too. Look at this line:

READ_WRITE (R/W):      6B8 (dec:     1720)

Of course READ_WRITE figure may not always work as RAM usage indicator, since you may create your own NO_INIT N/I segments and place there variables that don't need to be zeroad at startup, making srtartup taking less time.

0 项奖励
回复