Go Back   ManagementParadise.com | Management & Business Education Learning Platform BMM Paradise for Bachelors in Mass Media Forum > Advance Computers

What is Volatile Modifier?

Discuss What is Volatile Modifier? within the Advance Computers forums, part of the BMM Paradise for Bachelors in Mass Media Forum category; The volatile modifier is a directive to the compiler?s optimizer that operations involving this variable should not be optimized in ...

Reply

 

Thread Tools Display Modes
What is Volatile Modifier?
Old
 (1 (permalink))
Dr.Naga Rathinam
drnaga is on a distinguished road
 
drnaga
Student of Medicine & Health Care at SRM DENTAL COLLEGE
Chennai, Tamil Nadu
Management Paradise Member
 
Status: Offline
Posts: 645
Join Date: Sep 2011
Location: Chennai, Tamil Nadu
What is Volatile Modifier? - November 19th, 2011

The volatile modifier is a directive to the compiler?s optimizer that operations involving this variable should not be optimized in certain ways. There are two special cases in which use of the volatile modifier is desirable. The first case involves memory-mapped hardware (a device such as a graphics adaptor that appears to the computer?s hardware as if it were part of the computer?s memory), and the second involves shared memory (memory used by two or more programs running simultaneously).

Most computers have a set of registers that can be accessed faster than the computer?s main memory. A good compiler will perform a kind of optimization called ?redundant load and store removal.? The compiler looks for places in the code where it can either remove an instruction to load data from memory because the value is already in a register, or remove an instruction to store data to memory because the value can stay in a register until it is changed again anyway.
Advertisements

Friends: (0)
Reply With Quote
Reply

Bookmarks

Tags
modifier, volatile
Related to What is Volatile Modifier?
 

Similar Threads

Thread Thread Starter Forum Replies Last Post
How to handle volatile stock markets vengabeats Stock Markets Tips & Gyan !! 1 January 5th, 2008 02:26 PM
Volatile rupee hits mango exporters Melroy Lopes Articles !! 0 June 13th, 2007 09:17 PM
Volatile market: Invest at every dip Praveen Gurwani Stock Markets Tips & Gyan !! 0 December 15th, 2006 11:39 PM
Volatile Recovery in India Praveen Gurwani Stock Markets Tips & Gyan !! 0 December 14th, 2006 01:21 AM
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off


ManagementParadise.com is not responsible for the views and opinion of the posters. The posters and only posters shall be liable for any copyright infringement.



Search Engine Optimization by vBSEO ©2011, Crawlability, Inc.