CS 2734
Computer Organization II
(FYI: You might want to look in a standard C book about macros.)
Note: there is a continuing confusion about #include - this only causes the preprocessor to copy prototypes of functions, it does not actually include the code for the functions. (Do an example with math.h.)
Dynamic linking means that the executable doesn't actually contain the library code, but rather library calls are translated into instructions that jump to a linkage table. The entry causes a trap -- allowing the operating system to figure out where the library routine is and to replace that entry with the actual address. Next time the function is called, it doesn't cause a trap. This also allows library code to be shared.
Revision Date: 2/26/97 at 2:45pm