[fpc-pascal] arm-embedded and interrupts

Koenraad Lelong fpascal1 at de-brouwerij.be
Wed Dec 11 19:20:16 CET 2013


I made some time to tinker with my arm-embedded fpc-compiler.
Since I had a problem in the past with routines optimized away I checked 
for this. And indeed there is a problem : my interrupt-routines are 
gone. How do I tell the compiler to leave those routines in the binary ? 
I tried -O-, -O1, -O2 and -O3, all of them remove 'unused' routines. 
When I reference the routine in the code, it's in the binary. Of course 
that's not how it should be done.

Thanks for any pointers.
I'm using fpc 2.7.1, svn 25843.
I declare the interrupt-routines like this :

procedure SysTick_interrupt; interrupt;



What am I doing wrong ?

Thanks for any pointers.

Koenraad Lelong

More information about the fpc-pascal mailing list