the symbols in the  .s files 

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

the symbols in the  .s files 

954 次查看
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 项奖励
回复
3 回复数

792 次查看
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 项奖励
回复

792 次查看
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 项奖励
回复

792 次查看
Daniel_Popa
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