Why not just write *a=*b if the point isn't to avoid type constraints?
Also helps avoid creating ABI dependency on internal representations of one side.
-
-
Makes a lot of sense for sockets or IPC. Not so much in the kernel syscall case where you want the same struct ABI on both sides.
-
That's a place where you do until you don't. Think of 32-bit binaries on 64-bit kernel.
-
Abstracting the marshalling to begin with would have greatly reduced the overall coding effort.
-
You make a valid point. Though Sortix doesn't have 32-bit on 64-bit on purpose (partially for this reason), keeps things a lot simpler.
- 2 more replies
New conversation -
-
-
Rather than writing the "boilerplate" code you can use tables to represent the layout & generic code to do the marshalling using them.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.