register usage

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

register usage

995 Views
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

Labels (1)
0 Kudos
Reply
1 Reply

556 Views
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 Kudos
Reply