register allocation

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

register allocation

跳至解决方案
1,371 次查看
stefanodimasci1
Contributor III

Hello,

 

I need to be sure that a register won't be used during register allocation in GCC because I need it for some assembly level checks. Does anybody know what kind of directive I have to put in codewarrior?

 

 

Thank you.

标签 (1)
0 项奖励
回复
1 解答
1,267 次查看
trytohelp
NXP Employee
NXP Employee

Hi Stefano,

You're using CW for MCU v10.6 for MPC56XX.

Now If I understand correctly you request, you want to reserve a register.

I've found a note  explaining how to do that in the \CW MCU v10.6.4\MCU\Help\PDF\MCU_Power-Architecture_Compiler.pdf manual.

Please have a look pages 258 - 261

     14.2 Additional Small Data Sections

Have a great day,
Pascal
NXP Technical Support

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,267 次查看
trytohelp
NXP Employee
NXP Employee

Hi Stefano,

Can you please let me know what is the development tool chain you're using and the Processor ?

Have a great day,
Pascal
NXP Technical Support

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复
1,267 次查看
stefanodimasci1
Contributor III

I'm using the deafult GNU toolchain on codewarrior for the MPC5643L.

0 项奖励
回复
1,268 次查看
trytohelp
NXP Employee
NXP Employee

Hi Stefano,

You're using CW for MCU v10.6 for MPC56XX.

Now If I understand correctly you request, you want to reserve a register.

I've found a note  explaining how to do that in the \CW MCU v10.6.4\MCU\Help\PDF\MCU_Power-Architecture_Compiler.pdf manual.

Please have a look pages 258 - 261

     14.2 Additional Small Data Sections

Have a great day,
Pascal
NXP Technical Support

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复