[fpc-pascal] inline asm in fpc progran

Jonas Maebe jonas.maebe at elis.ugent.be
Fri Aug 20 11:08:57 CEST 2010

On 20 Aug 2010, at 09:41, Nataraj S Narayan wrote:

> This compiles and links. But wont execute on Arm target  
> (at91sam9263ek).
> Just waits endless. The equivalent C code linked to  the external  
> assembled
> code works well.

You probably need the "nostackframe" directive, or remove the "mov  
pc,lr" at the end.

Compile the code with -al, compile equivalent Pascal code with -al and  
look at the differences in the generated ".s" files.


More information about the fpc-pascal mailing list