www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - asserts and release

reply Etienne <etcimon gmail.com> writes:
Are asserts supposed to be evaluated in DMD release? I was getting a 
"privileged instructions error 0xC0000096" which was caused by an 
assert, when doing some gc programming in druntime
Jun 03 2014
next sibling parent "Tobias Pankrath" <tobias pankrath.net> writes:
On Tuesday, 3 June 2014 at 19:21:08 UTC, Etienne wrote:
 Are asserts supposed to be evaluated in DMD release? I was 
 getting a "privileged instructions error 0xC0000096" which was 
 caused by an assert, when doing some gc programming in druntime
Is this part of the runtime precompiled? If not the compiler switches you've used should be effective.
Jun 03 2014
prev sibling parent "bearophile" <bearophileHUGS lycos.com> writes:
Etienne:

 Are asserts supposed to be evaluated in DMD release? I was 
 getting a "privileged instructions error 0xC0000096" which was 
 caused by an assert, when doing some gc programming in druntime
assert(0) are not removed in release builds. They are a HALT. Bye, bearophile
Jun 03 2014