[LLVMdev] LLVM and Interrupt Service Routines.

Jakob Stoklund Olesen stoklund at 2pi.dk
Fri Jul 24 09:17:18 PDT 2009


Chris Lattner <clattner at apple.com> writes:

> On Jul 24, 2009, at 8:47 AM, Jakob Stoklund Olesen wrote:
>> - Save /all/ registers, including those that are normally caller  
>> saved.
>> - Use a special return instruction (RETI).
>> - Step over the "red zone" on the stack.
>> - Set up a safe stack frame before calling normal functions.
>>

> Wouldn't a custom calling convention work for all of these requirements?

Yes, I would think so.




More information about the llvm-dev mailing list