Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How does the PPC C/C++ Compiler support interrupt handling?

0
Posted

How does the PPC C/C++ Compiler support interrupt handling?

0

The TASKING PPC C/C++ Compiler supports the ‘_Interrupt’ keyword to define a function as an interrupt function. The difference between a normal function and an interrupt function is that all registers are saved, not only the volatile registers, and the ‘rfi’ instruction is generated to return from interrupt. To reduce interrupt processing overhead, floating point registers are not saved in ‘Interrupt’ functions. This is allowed because FP registers are typically not used in interrupt functions. The ‘Save_fpvr_on_interrupt pragma is available to save floating point volatile registers on interrupt when necessary.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123