Re:C library system-call wrappers, or the lack thereof
by tacostakohashi on Tuesday November 13, 2018 @10:50PM
(#18447321)
There's nothing stopping the wrapper function from being inlined (as it commonly is for some compiler + libc combinations), with all the usual tradeoffs for code size and ease of debugging.
[ Parent
| on HN ]
Re:C library system-call wrappers, or the lack thereof
by megous on Wednesday November 14, 2018 @07:11AM
(#18449260)
It doesn't happen, unless you compile C library with LTO. I'm yet to succeed in doing that for my musl C mipsel target.
Re:C library system-call wrappers, or the lack thereof
by JdeBP on Wednesday November 14, 2018 @12:36AM
(#18447755)
Inlining isn't the answer here. userbinator and you are missing out on more than a decade of IBM/Microsoft operating system evolution, with the invention of high-level-language-callable kernel APIs in the likes of DOSCALLS.DLL and NTDLL.DLL in the 1980s.