3 ms·
It used to be one function per syscall: https://github.com/haskus/haskus-system/blob/ee3e0a69a263aaf74554e6a18098812d8fc0d415/src/lib/ViperVM/Arch/X86_64/Linux/
by hsyl20 10y ago
It used to be one function per syscall: https://github.com/haskus/haskus-system/blob/ee3e0a69a263aaf74554e6a18098812d8fc0d415/src/lib/ViperVM/Arch/X86_64/Linux/Syscalls.hs https://github.com/haskus/haskus-system/blob/ee3e0a69a263aaf...
I did this to remove the boilerplate code, to make it easier to select the method (foreign primops or safe FFI foreign calls) and to make the conversion from the kernel tables simpler.
However I may have to switch to a Template Haskell solution because the type-level approach with type classes and type families has increased the compilation time and forces me to use `-freduction-depth=0`.