answersLogoWhite

0


Want this question answered?

Be notified when an answer is posted

Add your answer:

Earn +20 pts
Q: Why is it not possible to enforse memory protection at compile time?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Difference between compile and go loader and absolute loader?

in compile and go loader we use the core for placing code in other word you says that instruction placed directly in memory but in absolute loader data punched on cards. other one difference in that in compile and go loader core in not available for user but it in absolute loader core is available for user.


What is memory protection?

The protection of memory allocated to one program from unauthorized access by another program is called memory protection. It may refer to protection among various programs in a multi tasking environment or in between OS and a program in a single tasking environment. It is needed to prevent a bug within a process from affecting other processes. It also prevents system crash in case of error on OS.


Is memory allocated at runtime for the static variables?

No. Static memory is allocated at compile time. Static variables are allocated within the program's data segment which is a physical part of the executable. When you load the executable into memory, the operating system sets aside enough memory for the entire executable and copies it, byte for byte, into that memory. So when the program is executed, the data segment is already allocated.


What is dynamic method dispatch in java?

dynamic method dispatch is a technique by which a call to a overridden method is solved at runtime rather than compile time..this is how java implements runtime polymorphism.


What are the uses of sentinel value?

A sentinel value is a value that is not supposed to change. It can be allocated along with, and used before the beginning and after the ending of a region of memory to detect if the program logic modified memory outside of the intended region. Most compilers and run-time libraries will do this automatically when you do a debug compile/link.

Related questions

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.


How is protection affected in sgmentation of memory?

Protection in the segmentation of memory is protected by disallowing a process that is in use to access the memory of other processes that are not being used. It is a barrier between processes to protectÊthose not in use from possible virus infection or malicious software infection.


What do you do when the switch to remove write protection on a memory card does not work?

you should remove the contents if possible and reformat


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.


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.


Is the write protection on usb memory card readers hardware or software write protection?

The write protection on the USB memory card readers is both a hardware and software protection.


What is the difference between static memory versus dynamic memory?

Dynamic memory can be declared at run-time using the new and delete operators (or malloc and free in C), while static memory must be declared at compile-time.


What does the write protection switch do on a Secure Digital memory card?

The write protection switch on the secure digital memory card helps prevent the accidental erasure of the data in the memory card.


How do you disable write protection on a memory card?

Adjust the switch on the memory card adapter


What is hardware protection mechanism in operating systems?

CPU protection Memory protection I/O protection Dual mode protection. Research more about these and maybe you will get where you are going.


Does certain USB memory card readers support write protection for SD memory cards?

memory password forget


What are the desirable attributes for memory management?

protection encryption