Talk About Network



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 > volatile malloc...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 7 Topic 26126 of 26198
Post > Topic >>

volatile malloc memory?

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

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.




 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 Tue May 13 21:39:31 CDT 2008.