answersLogoWhite

0


Want this question answered?

Be notified when an answer is posted

Add your answer:

Earn +20 pts
Q: Why do you think is better to bind data and instructions to memory at execution time than doing it at compile time?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How are the address binding of instructions and data is carried to memory address?

Address binding of instructions and data to memory addresses can happen at three different stages: Compile time: If memory location known a priori, absolute code can be generated; must recompile code if starting location changes. Load time: Must generate relocateable code if memory location is not known at compile time. Execution time: Binding delayed until run time if the process can be moved during its execution from one memory segment to another. Need hardware support for address maps (e.g., base and limit registers).


What is compile-go loader?

compile and go loader is a type of loader function to have an assembler run in one part of the memory and places the assembled machine instructions,data as they are assembled,directly into their assigned memory location.


What does it mean to run a program?

In computer terminology, "running a program" means copying a sequence of instructions from storage into main memory and initiating the execution or interpretation of those instructions.


Does main memory provide the CPU with a working storage area for program instructions and data?

main memory provides buffers.buffers are the places where program execution takes place.but the CPU is provided with registers(memory units) there CPU can accomodate instructions and the data on which theses instructions are to be operated.from the main memory CPU fetches the instructions one by one and the instruction is processed in the CPU and then sends back the result to the main memory......i think so.thank u


What is meant by flow of execution a program?

That means to load a computer program into a computer's memory, and have the computer carry out the instructions in the program.


Why is not possible to enforce memory protection at compile time?

This cannot be done at compile time because the memory allocated to a process is subject to change.


What is address binding in operating systems?

A program, to be executed, must be brought to main memory. The instructions that use addresses in a program, must be bound to proper address space in main memory. Address binding is a scheme that performs this job. It can be thought as a mapping from one address space to another. There are bindings available as follows: Compile time binding Load time binding Execution time binding


What is dynamic mamory?

Dynamic memory refers to memory that is allocated and deallocated during program execution, as opposed to static memory which is allocated at compile time. In C and C++, dynamic memory allocation is done using functions like malloc() and free(), allowing for flexibility in managing memory resources at runtime. However, improper use of dynamic memory can lead to memory leaks or segmentation faults.


When data and instructions are not being used where are they kept?

Originally they're kept on the hard drive in the form of a program. Once run, the instructions and data are loaded into main memory until the processor is ready for them. They are then read into the various levels of CPU cache when awaiting execution.


Difference between contiguous and non contiguous memory allocation?

In a contiguous memory allocation there is no overhead during execution of a program. In a non contiguous memory allocation address translation is performed during execution.


At what time the memory is allocated for variable in c and c?

Static memory allocation occurs at compile time where as dynamic memory allocation occurs at run time.


What is the computer acronym DIME?

Direct Memory Execution