Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

[14 7 2 points] Characterize the binding time of each of the following. For time

ID: 3729983 • Letter: #

Question

[14 7 2 points] Characterize the binding time of each of the following. For times, use Language and Standard library design; Compiler design-; Program writing-; Compile; Link; Load; and Run. Below, "Memory location" means virtual memory address. a. The number of bytes in a long integer b. The memory location (offset within runtime stack frame) for a variable in a program c. Amount of runtime stack space for a program d. Specification of the sqrt function e. The memory location to jump to for a function in a dynamic library The memory location for the main function's code g. The memory location for a user-written function in the same file as main

Explanation / Answer

Solution:

a)

The number of bytes in a long integer: Compiler design time

b)

The memory location of a variable in the program : At compile time

c)

Amount of runtime stack space: Runtime

We can be sure about the space requirement or depth of recursion stack so the amount of runtime stack can't be calculated beforehand

d)

Specification of sqrt function: Program Writing

It depends upon how we define sqrt function

e)

Memory location to jump to for a function in the dynamic library: Link time

Dynamic libraries are linked at the Linking time so at link time we know the memory location

f)

Memory location of Main function code: Load time

At load time, the program is loaded into memory so it is at load time that we can be sure about memory location of the main function code

g)

Memory location for user-written code: At runtime

Only at runtime function will be called so only then we can know memory location of the user-written function

I hope this helps if you find any problem. Please comment below. Don't forget to give a thumbs up if you liked it. :)

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote