Linked by Thom Holwerda on Wed 9th Nov 2011 21:26 UTC, submitted by edwin
General Unix Way back in 2002, MIT decided it needed to start teaching a course in operating system engineering. As part of this course, students would write an exokernel on x86, using Sixth Edition Unix (V6) and John Lions' commentary as course material. This, however, posed problems.
Permalink for comment 497010
To read all comments associated with this story, please click here.
RE[4]: binary for windows....
by Alfman on Sat 12th Nov 2011 00:08 UTC in reply to "RE[3]: binary for windows.... "
Member since:


"The glue code is either needed, or it is not needed. If it's needed, then you can't simply "optimize it away". If it's not needed, then you can just remove it from the syscall shim."

I agree with most of your post, but the problem with shared libraries is that often times they just add a layer of indirection to the syscall without adding much value. If you use a shared library to perform a function, then you cannot optimize away the glue code used to call the shared library.

On the other hand if we're willing to internalize the code into a static binary, the glue code becomes unnecessary (I'm not sure that GCC/LD will do this kind of optimization, but the potential is certainly there).

Reply Parent Score: 2