[fpc-pascal] syscalls and fpc

Pete Cervasio cervasio at airmail.net
Sat Feb 16 23:59:29 CET 2008

On Saturday 16 February 2008 14:55:24 ik wrote:
> On Feb 16, 2008 10:03 PM, Florian Klaempfl <florian at freepascal.org> wrote:
> > ik schrieb:
> > > 1. There is a support only for up to 6 parameters (plus the instruction
> > > itself).
> >
> > Which syscall has more parameters?
> I don't know, but then again, up until now I did not require to use
> syscall on my own (at least using FPC, because I used "write" using
> "pure" assembly). But now that I do require, I found a design that I
> find it problematic. But as I understand, I'm the only one that think
> there is a problem, so I'll give up and I'll not bother you on this
> again.

If the way the syscall routine works is a problem for you, then you are going 
to have to take that up with the Linux kernel guys.  Free Pascal is only 
interfacing to something that the Linux kernel provides, and it's provided by 
the kernel in that very strict, very rigid manner.

It doesn't matter what language you use, Pascal, C, or whatever, to perform a 
system call you must put some integer values into processor registers and 
perform an interrupt (if I recall correctly without looking it up, int $80).  
There's no getting around how that works.

I beg your pardon if I'm misunderstanding the complaint.

Best regards,
Pete C.

More information about the fpc-pascal mailing list