Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C > Re: volatile ma...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 7 Topic 26108 of 27343
Post > Topic >>

Re: volatile malloc memory?

by "Dan" <voids@[EMAIL PROTECTED] > May 9, 2008 at 05:41 PM

"Dan" <voids@[EMAIL PROTECTED]
> wrote in message 
news:4823fef1$0$1026$afc38c87@[EMAIL PROTECTED]
> What is the correct way to allocate memory that is defined as volatile
so 
> that all standard compilers will not optomise out writes to the memory 
> that are never read again?
>
> I have some encryption programs that, depending on the 
> implementation/compiler, part of the code that clears memory at the end
of 
> the program gets optomised away.

ps. i tried some obvious stuff like specifing the character pointed to as 
volatile when assigning to it a value, but it still gets optomised away.
 




 7 Posts in Topic:
volatile malloc memory?
"Dan" <voids  2008-05-09 17:36:01 
Re: volatile malloc memory?
"Dan" <voids  2008-05-09 17:41:04 
Re: volatile malloc memory?
Johannes Bauer <dfnson  2008-05-09 11:25:15 
Re: volatile malloc memory?
Antoninus Twink <nospa  2008-05-09 12:15:14 
Re: volatile malloc memory?
Antoninus Twink <nospa  2008-05-09 14:06:12 
Re: volatile malloc memory?
vippstar@[EMAIL PROTECTED  2008-05-09 07:01:55 
Re: volatile malloc memory?
Antoninus Twink <nospa  2008-05-09 20:32:34 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Sep 6 21:46:01 CDT 2008.