Linker Control File or #pragma section??

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

Linker Control File or #pragma section??

1,153 Views
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

Labels (1)
0 Kudos
Reply
2 Replies

564 Views
bugs
Contributor III

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

0 Kudos
Reply

564 Views
Tim562
Senior Contributor I

Thank you for your help.

 

~Tim

0 Kudos
Reply