the symbols in the  .s files 

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

the symbols in the  .s files 

704 Views
hjhjhj
Contributor IV

Hi, 

  When reviewing the  code generated for MPC5643L,I can't find the definitions as follows.

 

_IVPR_VALUE

_SRAM_BASE_ADDR

_SRAM_SIZE

_BSS_SIZE

_BSS_START

_DATA_SIZE

_DATA_ROM_ADDR

_DATA_SRAM_ADDR

_SDATA_SIZE

_SDATA_ROM_ADDR

_SDATA_SRAM_ADDR

_SP_INIT

_DATA_RAM

_DATA_ROM

_DATA_END

_BSS_END

 

Can you help me find it?

Thanks a lot.
Hj

Original Attachment has been moved to: 170622.rar

0 Kudos
3 Replies

542 Views
constantinrazva
NXP Employee
NXP Employee

Hi hjhjhj‌,

If you are looking for the linker generated symbols, you can find them in 

can_simple_block.map file:

com_ans.png

Hope this helps!

Razvan.

0 Kudos

542 Views
hjhjhj
Contributor IV

Hi Razvan,

     There're the symbols' address in the can_simple_block.map file,but what I want to find is the place where the symbols are defined.And I try to use the symbols in other files,which is the reason why I must find their derivations .Do you kown the files where the symbols are defined?

Thank you!
Hj

0 Kudos

542 Views
dumitru-daniel_
NXP Employee
NXP Employee

Hi hjhjhj

Those symbols are defined in the linker command files (aka linker scripts)

To access them from the other C-source files is quite easy: please check this out:

Accessing GNU Linker Script Symbols from C/C++ | MCU on Eclipse 

Best regards,
Daniel