Hi,

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;

begin

...
end;

What am I doing wrong ?

Thanks for any pointers.

Koenraad Lelong
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to