Linker Control File or #pragma section??

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

Linker Control File or #pragma section??

1,487 次查看
Tim562
Senior Contributor I

Hi All, I need to locate some global variables in a specific address window on the LocalPlusBus of my MPC5125 project. Can anyone offer guidance as to the best way to do this? Would a #pragma section be the right thing to do? How about modifying the Linker Control File? I found AN3203 but that was pretty specific to the LCF for the MCS8144 DSP. Is there anything like that appnote for the MPC5125 and CodeWarrior for MobileGT? A few lines of example text on how to modify the LCF to create a custom user section and how to instruct the compiler/linker to place certain variables in that section would be really helpful. Thanks in advance to any who can help!

 

~Tim

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

898 次查看
bugs
Contributor III

use LCF to define a section and use #pragma section to put your variables in the defined section.

0 项奖励
回复

898 次查看
Tim562
Senior Contributor I

Thank you for your help.

 

~Tim

0 项奖励
回复