Can we do Syscalls in Mojo?
Direct syscalls or kernel calls?
I believe that if you prefer direct syscalls, it would be logical to interface with a lompiled .a or .so library, as it is arch-specific.
This way you can do both calls.
If you are looking for kernel calls, maybe use libc calls?
sys.ffi.external_call
I was looking for a direct sys call, I’m currently using libc, but just wanted to know if it was possible to do it directly.
Any lower and you would go into LLVM IR or ASM instructions… Maybe write your library and interface with it? The overhead is minimal - just pass a pointer
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.