register usage

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

register usage

1,033件の閲覧回数
erez_huji
Contributor I

Hi,

First, I'm sorry for my English grammar..

I'v been trying to reduce the overhead caused by entering into an ISR.

One of the solutions is to save only a fraction of the CPU's registers.

In order to do that, while playing safe with the interrupted thread, I will have to make that the ISR will run using that fraction of the CPU's registers only.

Is there a way to order the compiler to use only some specific registers while compiling?


Important: I'm using Freescals's MPC5553...

 

Regards,

Erez

ラベル(1)
タグ(1)
0 件の賞賛
返信
1 返信

594件の閲覧回数
J2MEJediMaster
Specialist I

I would check in the Build Tools reference manual (it should be in the Help directory) and look up the _declspec(interrupt) pragma. I do not know if it would will provide the precise control that you need, but it would be the place to start.

 

---Tom

0 件の賞賛
返信