Re: [fpc-pascal] inline asm in fpc progran

2010-08-26 Thread Jeppe Johansen
Fpc should be compiled with -dFPC-ARMEL in OPT, not CROSSOPT Den 26-08-2010 07:10, Nataraj S Narayan skrev: Hi Jonas I tried a very elementary code on arm-linux-uclibc, compiled using ppcrossarm -TLinux -darm ttt3.pas -CfSOFT -XParm-linux- -XR/cdrom program kuraj; begin

Re: [fpc-pascal] inline asm in fpc progran

2010-08-26 Thread Jeppe Johansen
Err, that should be -dFPC_ARMEL of course Den 26-08-2010 09:42, Jeppe Johansen skrev: Fpc should be compiled with -dFPC-ARMEL in OPT, not CROSSOPT Den 26-08-2010 07:10, Nataraj S Narayan skrev: Hi Jonas I tried a very elementary code on arm-linux-uclibc, compiled using ppcrossarm

Re: [fpc-pascal] inline asm in fpc progran

2010-08-25 Thread Nataraj S Narayan
Hi Jonas I tried a very elementary code on arm-linux-uclibc, compiled using ppcrossarm -TLinux -darm ttt3.pas -CfSOFT -XParm-linux- -XR/cdrom program kuraj; begin writeln('Hooua'); end. The asm listing using -al is here: - http://pastebin.com/CG9i0x3z It dont work in the normal EABI kernel

Re: [fpc-pascal] inline asm in fpc progran

2010-08-22 Thread patspiper
On 08/21/2010 01:20 PM, Nataraj S Narayan wrote: Hi I don't NEED a help, paid or unpaid. Your first email mentions explicitly the need for help: On 08/20/2010 10:41 AM, Nataraj S Narayan wrote: Hi May I have some help in this code ? I am on arm-linux-uclibc. Compiling using :- snip

Re: [fpc-pascal] inline asm in fpc progran

2010-08-21 Thread Michael Van Canneyt
All Jonas wanted to say was that you didn't report on his suggestions. How can he help further if he doesn't know the result of his previous suggestion ? Giving help is in the first place diagnosing. We can't offer help if the diagnose result is not known or incomplete. Michael. On Sat, 21

Re: [fpc-pascal] inline asm in fpc progran

2010-08-21 Thread patspiper
On 08/21/2010 07:44 AM, Nataraj S Narayan wrote: Jonas I was expecting exactly this response from you. I did'nt ask you to volunteer to help me. If you don't find time, or feel it wasting your time, let somebody else do it. Issue is very much real and i tried out your suggestions without

Re: [fpc-pascal] inline asm in fpc progran

2010-08-21 Thread Nataraj S Narayan
Hi I don't NEED a help, paid or unpaid. As for the regular arm software development I am already using stable and good tools like C++, Ruby, Python. Fpc/Lazarus is more of a hobby or a kind nostalgia about the good old Delphi. Of course, if it works well, quite good. As for volunteering, I

[fpc-pascal] inline asm in fpc progran

2010-08-20 Thread Nataraj S Narayan
Hi May I have some help in this code ? I am on arm-linux-uclibc. Compiling using :- # ppcrossarm -MObjFPC -TLinux -Parmv5 -gl -Xd -Xs -l -darm -XParm-unknown-linux-uclibcgnueabi- -CfSOFT -CaEABI -darm -gl -O- -CpARMV5 -uUSE_LOCALIZE -Fu/usr/local/lib/fpc/2.5.1/units/arm-linux/*

Re: [fpc-pascal] inline asm in fpc progran

2010-08-20 Thread Jonas Maebe
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

Re: [fpc-pascal] inline asm in fpc progran

2010-08-20 Thread Nataraj S Narayan
Jonas 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

Re: [fpc-pascal] inline asm in fpc progran

2010-08-20 Thread Jonas Maebe
On 20 Aug 2010, at 15:00, Nataraj S Narayan wrote: On Fri, Aug 20, 2010 at 2:38 PM, Jonas Maebe jonas.ma...@elis.ugent.be wrote: 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

Re: [fpc-pascal] inline asm in fpc progran

2010-08-20 Thread Nataraj S Narayan
Jonas I was expecting exactly this response from you. I did'nt ask you to volunteer to help me. If you don't find time, or feel it wasting your time, let somebody else do it. Issue is very much real and i tried out your suggestions without any use. regards Nataraj Someday they gonna tell ya