Map file analysing...

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Map file analysing...

542 Views
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.

Labels (1)
0 Kudos
2 Replies

288 Views
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 Kudos

288 Views
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 Kudos