the map file of CW for MPC55xx V2.2 generate

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

the map file of CW for MPC55xx V2.2 generate

1,211 Views
wmwlove
Contributor I
why the map file generate by  CW for MPC55xx V2.2  can't see the address of the variables?
As everybody knows that the map file generate by  CW for H12 we can see the address of the variables and other information.
please help me, thanks!
0 Kudos
2 Replies

385 Views
CrasyCat
Specialist III
Hello
 
MAP file generated by PPC linker is slightly different from .map file generated by HC12 linker.
 
You should be able to retrieve the address of your variables/functions though.
 
Suppose you have defined a variable as
  char var2;
 
In the MAP file you can see something like
.bss section layout
  Starting        Virtual  File
  address  Size   address  offset
  ---------------------------------
  00000000 000001 4000b008 000011d8  1 .bss  main.o
  00000000 000001 4000b008 000011d8  1 var2  main.o
Which indicates that the variable var2 is allocated at address 0x4000b008.
 
CrasyCat
0 Kudos

385 Views
ian_Landrover
Contributor I
So the below item list is understandabale apart from the last digit, this 1 can be 1, 2, 4 or 8 etc in a map file I have generated. But what does this mean. The size of the object can be lets say 54h, and the value of 4 at the end means what ?
 
Cheers
 
Ian
 
00000000 000001 4000b008 000011d8  1
0 Kudos