En/na Luca Olivetti ha escrit:
En/na Luca Olivetti ha escrit:
The following program:
program hello;
begin
writeln('hello');
end.
runs but it doesn't print anything, neither under scratchbox nor on
the tablet.
I installed strace on the tablet:
~ $ strace ./hello
execve("./hello", ["./hello"], [/* 59 vars */]) = 0
syscall: unknown syscall trap 0x00008000
According to here
http://www.arm.linux.org.uk/developer/patches/viewpatch.php?id=3105/4
and here
http://www.arm.linux.org.uk/developer/patches/viewpatch.php?id=3105/4
the syscall number should be put in r7
Also the alignment of the parameters in the registers is different.
Of course I cannot make head or tails of syscall.inc, so it's possible
that everything is already done as it should be.
Bye
--
Luca
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal