Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where does the -DNDEBUG normally come from?

Our build system has somehow changed such that optimized builds are no longer getting the -DNDEBUG added to the compile line. I searched our makefiles and don't find this.

So the question is, where does -DNDEBUG originate for most people and how might that have changed? Before we did have -DNDEBUG and I don't think this was removed from any of our makefiles.

Thanks.

-William

like image 574
WilliamKF Avatar asked Dec 10 '09 04:12

WilliamKF


People also ask

Where does the normal distribution come from?

The normal distribution is produced by the normal density function, p(x) = e−(x−μ)2/2σ2/σ √2π. In this exponential function e is the constant 2.71828…, is the mean, and σ is the standard deviation.

Why is the normal distribution curve called normal?

Early statisticians noticed the same shape coming up over and over again in different distributions—so they named it the normal distribution. Normal distributions have the following features: symmetric bell shape. mean and median are equal; both located at the center of the distribution.

Who coined the normal probability?

The normal probability distribution was introduced by the French mathematician Abraham de Moivre in 1733. He used it to approximate probabilities associated with binomial random variables when n is large. This was later extended by Laplace to the so-called CLT, which is one of the most important results in probability.

What is normal distribution normally?

The Normal Distribution is defined by the probability density function for a continuous random variable in a system. Let us say, f(x) is the probability density function and X is the random variable.


1 Answers

Since the compiler can't decide on its own when to add the NDEBUG define and when not to, the flag is always set by either the makefile or project file (depending on your build system).

like image 120
Tal Pressman Avatar answered Sep 22 '22 23:09

Tal Pressman