Hi Henry, Luca<br><br>I got a 'ppcarm' after compiling the fpc-svn. I copied the pparm to the qemu-system-arm emulated machine and tried to compile a Helloworld.pas.<br>fpc showed some errors related to FPU and stopped. Then i copied many *.o and *.ppu files from host to qemu machine. This time fpc compiled and linked the crt0.o and system.o and few other file, and the program worked.<br>
<br>But when i copied to the actual target AT91SAM9263 , it wont work - just<br> waits endlessly.<br><br>strace in the target gives:- <br><br>syscall(0x90004c,0x3,0xbebd6de8,0xbebd6df0,0x40000) = -1 EINTR (Interrupted system call)<br>
<br>And finally a bad file descriptor. Exit(0).<br><br>The architecture is  "armvtejl" in both target as well as the emulated machine.<br><br>I tried generating assembler files in emulated and the assembling in the target. But getting same.<br>
<br>What could be done now?<br><br>regards<br><br>Nataraj <br><br><br><div class="gmail_quote">On Wed, Jun 4, 2008 at 3:33 AM, Henry Vermaak <<a href="mailto:henry.vermaak@gmail.com">henry.vermaak@gmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">2008/6/3 Luca Olivetti <<a href="mailto:luca@ventoso.org">luca@ventoso.org</a>><br>
<div class="Ih2E3d">><br>
> the syscall number should be put in r7<br>
> Also the alignment of the parameters in the registers is different.<br>
> Of course I cannot make head or tails of syscall.inc, so it's possible that<br>
> everything is already done as it should be.<br>
<br>
</div>mov r7, r0 puts the syscall nr into r7.  i haven't looked at the<br>
alignment, though :-\<br>
<br>
"With EABI, 64-bit function parameters passed in registers are aligned<br>
to an even-numbered register instead of using the next available<br>
pair."<br>
<br>
what output does:<br>
<br>
qemu-arm -strace hello<br>
<br>
give? (run on your i386 after cross-compiling)<br>
<br>
did you compile this with the 2.18 binutils?  my qemu-arm is happy<br>
with my simple hello program.  even does writeln(2/3) properly.<br>
<font color="#888888"><br>
henry<br>
</font><div><div></div><div class="Wj3C7c">_______________________________________________<br>
fpc-pascal maillist  -  <a href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a><br>
<a href="http://lists.freepascal.org/mailman/listinfo/fpc-pascal" target="_blank">http://lists.freepascal.org/mailman/listinfo/fpc-pascal</a><br>
</div></div></blockquote></div><br>