Note: from others ArticleTo learn.
Debug is usually called a debug version. It contains debugging information and is not optimized.ProgramDebugging program. Release is called a release version. It is often optimized to make the programCodeBoth the size and running speed are optimal, so that users can use them well.
Debug version
Parameter description
/MDD/MLD or/MTD use the debug Runtime Library (the runtime function library of the debug version)
/OD turn off the optimization Switch
/D "_ debug" is equivalent to # DEFINE _ Debug. Enable the compile and debug code switch (mainly for the assert function)
/Zi creates the edit and continue database, so that if you modifySource codeNo need to recompile
/GZ helps capture Memory Errors
/GM enables the minimize reconnection switch to reduce the link time
Release Version
Parameter description
/MD/ml or/MT use the runtime function library of the released version
/O1 or/O2 optimization switch to minimize or minimize the program
/D "ndebug" Disable the Conditional compilation and debugging code switch (that is, do not compile the assert function)
/GF combines repeated strings and puts string constants in read-only memory to prevent Modification
In fact, there is no essential limit between debug and release. They are just a set of compilation options, and the compiler only acts according to the predefined options. In fact, we can even modify these options to get optimized debugging versions or release versions with trace statements.