The difference between Debug and release
1, Debug: Debug version, including debugging information, so the capacity is much larger than the release, and no optimization (optimization will complicate debugging, because the source code and the generated instructions between the more complex), easy to debug the programmer.
two files are generated in debug mode, in addition to the. exe or. dll files, there is a. pdb file that records debugging information such as breakpoints in code2, Release: Release version, do not debug the source code, compile time to optimize the speed of the application, making the program in code size and speed is optimal. (Debug information can be generated in a separate PDB file.)
two files are generated in release mode. exe or. dll files
ii. role of the obj folder
The obj directory also has debug and release two subdirectories, the obj directory is the source directory for the project build DLL, and then the generated DLL is copied to the Bin directory. obj is used to hold intermediate temporary files generated during compilation. In. NET, the compile time module is compiled, each module's compilation results are saved in the Obj directory, and eventually merged into an. exe or. dll file to the bin directory.
because each compilation is an incremental compilation, which is to recompile only the changed modules, so this obj directory is to save the compilation results of these small pieces and speed up the compilation.
The difference between Visual Studio Debug and release and the role of obj