How does a linked library combined with the main executable program file interact with a kernel?
- by I ask Questions For a Reason
I was attempting to find an answer to this, and I did to some degree, but definitely not anywhere good enough to form a respectable, sensible and clear answer.
If I am using Windows, Mac, Linux, or nearly any modern made OS for desktop IBM-compatible PCs, laptops, even tablets and smartphones, there's virtual memory.
Clearly, compiling, at least on Windows I know this, an executable object file, such as a simple C "Hello World" output to a terminal, will be linked with the standard library, and several other Window's system software, dynamic linked libraries, and the like.
However, how does linking all of these executables together or resources form a connectable interaction with, say, a device driver or any other stuff on the lower level?