-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
calling windows system calls #50
Comments
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:
The text was updated successfully, but these errors were encountered: