[fpc-pascal] inline asm in fpc progran

Nataraj S Narayan natarajsn at gmail.com
Fri Aug 20 15:00:29 CEST 2010


I changed the kernel to old 2.6.30 and the code works on the Arm target!

That kernel  has been compiled with CONFIG_OABI_COMPAT=y. Newer kernels dont
show this option, only EABI.

Also my ppcrossarm is :-

Free Pascal Compiler version 2.5.1 [2010/07/28] for arm
Copyright (c) 1993-2009 by Florian Klaempfl

What do you make of it? Compile a new ppcrossarm and try it?



On Fri, Aug 20, 2010 at 2:38 PM, Jonas Maebe <jonas.maebe at elis.ugent.be>wrote:

> 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.
> Jonas
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20100820/7721004f/attachment.html>

More information about the fpc-pascal mailing list