Open vigilancetech-com opened 7 years ago
Is there currently a high level way to call system calls?
No, there isn't. Yes, it would be nice to have.
Note that there's a difference between system calls and library calls. The former use the Linux ABI, and the latter use the C ABI.
What about library calls into Windows?
The Windows port does some contortions to call the kernel32 APIs. I think the same method applies to all dlls?
I don't know much but I don't see anything different when calling kernel32 as other dlls. Can you tell me what the 80 # int, in write-file in the windows io.fth is all about? I thought that only applied to linux syscalls.
That should be a bug. I probably used the Linux io.fth for the Windows port but forgot about write-file.
I don't know why that passes the tests!
Is there currently a high level way to call system calls?
I look in io.fth and see you setting up the system calls but you only do them from assembly below.
For example, in FreeForth there is the word:
and: