[LLVMdev] LLVM and Interrupt Service Routines.

Jakob Stoklund Olesen stoklund at 2pi.dk
Fri Jul 24 10:49:46 PDT 2009

On 24/07/2009, at 19.41, <Alireza.Moshtaghi at microchip.com> wrote:

> As you know PIC16 does not have stack; so generating code for ISR and
> all functions that it calls (including all stdlib and basic math
> intrinsics used for mult/div/etc) requires special code generation
> techniques. But we don't have this information until after llvm-ld has
> merged all compilation units into one. Theoretically llvm-ld can also
> correct the calling convention for the two classes of functions, but  
> I'm
> not sure about the practicality of it.

What happens with functions that are called both inside and outside  
ISR context? Do you have to codegen two copies of those?

More information about the llvm-dev mailing list